6 Replies Latest reply on Oct 3, 2016 1:20 PM by Intel Corporation

    arduino scripting. When does the board pickup the uploaded script?

    InnovatorPrime

      Hey community:

       

          I was trying the sample blink and Fade script. the blink seems to work fine but what is the effect of the Fade script? What is the serial monitor? I have attached the Grover starter kit and the RGB Backlight LCD which I attached to A0. I am using Arduino 1.6.0

       

      Wen Bo Ma

        • 1. Re: arduino scripting. When does the board pickup the uploaded script?
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Wen Bo Ma,

          We’ll walk you through the steps to work with the blink and fade examples of the Arduino IDE. The effect of the fade example should be at first, seeing the LED on and slowly fading to see a dimming effect. This cycle repeats itself for as long as the script is running.  The board picks up the uploaded script after you see a “Transfer complete” message on the Arduino IDE.

          Remember to choose the correct board and port on the IDE. If you’re using the Fade example without any modifications, you should connect the LED to the digital pin 9 to see the fading effect.

          Let us know if you find this useful.

          -Sergio
           

          • 3. Re: arduino scripting. When does the board pickup the uploaded script?
            inteligentacolyte

            I got these errors that didn't show up before. I also take a screen shot of my device manager.

             

            Arduino: 1.6.0 (Windows 7), Board: "Arduino Yún"

            C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -IC:\Intel\arduino-1.6.0+Intel\hardware\arduino\avr\cores\arduino -IC:\Intel\arduino-1.6.0+Intel\hardware\arduino\avr\variants\yun C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Blink.cpp -o C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Blink.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\hooks.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\WInterrupts.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\wiring.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\wiring_analog.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\wiring_digital.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\wiring_pulse.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\wiring_shift.c.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\abi.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\CDC.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HardwareSerial.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HardwareSerial0.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HardwareSerial1.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HardwareSerial2.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HardwareSerial3.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\HID.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\IPAddress.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\main.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\new.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Print.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Stream.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Tone.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\USBCore.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\WMath.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\WString.cpp.o

            Using previously compiled file: C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\core.a

            C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega32u4 -o C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.elf C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp\Blink.cpp.o C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/core.a -LC:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp -lm

            C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.elf C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.eep

            C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.elf C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.hex

             

            Sketch uses 4,744 bytes (16%) of program storage space. Maximum is 28,672 bytes.

            Global variables use 151 bytes (5%) of dynamic memory, leaving 2,409 bytes for local variables. Maximum is 2,560 bytes.

            Forcing reset using 1200bps open/close on port COM10

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            PORTS {COM7, COM10, } / {COM7, COM10, } => {}

            Uploading using selected port: COM10

            C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/bin/avrdude -CC:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM10 -b57600 -D -Uflash:w:C:\Users\wenboma\AppData\Local\Temp\build3955416754937696454.tmp/Blink.cpp.hex:i

            avrdude: Version 6.0.1, compiled on Apr  3 2014 at 23:12:16
                     Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
                     Copyright (c) 2007-2009 Joerg Wunsch

                     System wide configuration file is "C:\Intel\arduino-1.6.0+Intel/hardware/tools/avr/etc/avrdude.conf"

                     Using Port                    : COM10
                     Using Programmer              : avr109
                     Overriding Baud Rate          : 57600
                     AVR Part                      : ATmega32U4
                     Chip Erase delay              : 9000 us
                     PAGEL                         : PD7
                     BS2                           : PA0
                     RESET disposition             : dedicated
                     RETRY pulse                   : SCK
                     serial program mode           : yes
                     parallel program mode         : yes
                     Timeout                       : 200
                     StabDelay                     : 100
                     CmdexeDelay                   : 25
                     SyncLoops                     : 32
                     ByteDelay                     : 0
                     PollIndex                     : 3
                     PollValue                     : 0x53
                     Memory Detail                 :

                                              Block Poll               Page                       Polled
                       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                       eeprom        65    20     4    0 no       1024    4      0  9000  9000 0x00 0x00
                       flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
                       lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                       hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                       efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                       lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

                     Programmer Type : butterfly
                     Description     : Atmel AppNote AVR109 Boot Loader

            Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
            Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

            • 4. Re: arduino scripting. When does the board pickup the uploaded script?
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi,

               

              @InnovatorPrime: Do you still need assistance with this thread. Were you able to run the Fade example script?

               

              @inteligentacolyte: Digital pin 9 can be found in the Arduino expansion board in the Digital (PWM) header. The error you get in the last comment is caused because the Arduino Yun board was chosen instead of the Edison board. When uploading sketches, make sure to select the correct COM port and Board.

               

              -Sergio

              • 5. Re: arduino scripting. When does the board pickup the uploaded script?
                InnovatorPrime

                hey Sergio:

                 

                   it works now for blink but where pin 9? what is the serial monitor?

                • 6. Re: arduino scripting. When does the board pickup the uploaded script?
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Digital pin 9 can be found in the Arduino expansion board in the “Digital (~PWM)” header. The serial monitor is a feature of the Arduino IDE. It can be found in the top right corner of the IDE as a magnifying glass. It displays serial data being sent from the Arduino. It acts as a separate terminal that communicates by receiving and sending serial data.

                  Let us know if this is what you were looking for.

                  -Sergio