AD8232/promini238 and Raspberry Pi

New to this game!

Using the https://learn.sparkfun.com/tutorials/ad … -guide/all page, but can’t find any reference to using raspberry pi computer for display, or how to run the arduino sketches. Tried installing arduino, but get a java exec. error just trying to run the IDE.

What does the raspberry need to 1) understand the sketches (C++?); 2) to hook up to the ad8232/promini238 setup; for example, can I power the boards with the raspberry 3.3v output, or do I use the usb cable from the FTDI to the usb Raspberry input? will that enable both powering the boards and displaying the board output?

Thanks!

Hello, and thanks for writing!

For help getting the Arduino IDE running on a Pi, you’re going to need to ask in the Arduino Forum. Unfortunately we have never attempted to get the IDE working on a Pi. From your description, it sounds like you’re either missing Java or the version of Java the IDE wants, OR your IDE download might be damaged. The folks over at Arduino or other Arduino/Pi users should be able to help you get that all figured out.

https://forum.arduino.cc/

I don’t think the Arduino IDE works with C++ code, but it will work with C code provided it’s formatted the way the IDE is looking for. Arduino code would be fine in the IDE.

Also, you can’t program a Pi in the IDE, but you can program an Arduino board. You’re probably going to want to connect your AS8232 to an Arduino and have the Arduino communicate with the Pi over USB.

Well, forget the Rpi–for now! Regressed to IDE 1.0.5 to match the sketch environment**, but now get all kinds of errors verifying the Processing 2.2.1 sketch for the graphics:

sketch_apr25b:25: error: variable or field ‘serialEvent’ declared void

sketch_apr25b:25: error: expected `)’ before ‘myPort’

sketch_apr25b:22: error: ‘import’ does not name a type

sketch_apr25b:24: error: ‘Serial’ does not name a type

sketch_apr25b:31: error: expected unqualified-id before ‘[’ token

sketch_apr25b:35: error: ‘PFont’ does not name a type

sketch_apr25b.ino: In function ‘void setup()’:

sketch_apr25b:40: error: ‘size’ was not declared in this scope

sketch_apr25b:43: error: ‘class HardwareSerial’ has no member named ‘list’

sketch_apr25b:43: error: ‘println’ was not declared in this scope

sketch_apr25b:45: error: ‘myPort’ was not declared in this scope

sketch_apr25b:45: error: expected type-specifier before ‘Serial’

sketch_apr25b:45: error: expected `;’ before ‘Serial’

sketch_apr25b:49: error: ‘background’ was not declared in this scope

sketch_apr25b:50: error: ‘font’ was not declared in this scope

sketch_apr25b:50: error: ‘createFont’ was not declared in this scope

sketch_apr25b.ino: In function ‘void draw()’:

sketch_apr25b:56: error: ‘height’ was not declared in this scope

sketch_apr25b:58: error: ‘line’ was not declared in this scope

sketch_apr25b:62: error: ‘width’ was not declared in this scope

sketch_apr25b:64: error: ‘background’ was not declared in this scope

sketch_apr25b:73: error: ‘fill’ was not declared in this scope

sketch_apr25b:74: error: ‘rect’ was not declared in this scope

sketch_apr25b:76: error: invalid operands of types ‘const char [6]’ and ‘float’ to binary ‘operator+’

sketch_apr25b:76: error: ‘text’ was not declared in this scope

sketch_apr25b.ino: At global scope:

sketch_apr25b:81: error: variable or field ‘serialEvent’ declared void

sketch_apr25b:81: error: expected `)’ before ‘myPort’

**iMac osx 10.11.6; sketches by Casey Kuhns–he still around?

Also, am I right, that both sketches have to be uploaded to work together, or what is their relationship?

Many thanks for any and all help!

Stefan

Sadly, Casey has moved onto bigger and better things. :slight_smile:

It looks like you’re trying to run the processing sketch inside the Arduino IDE. You need the [Processing v2.2.1 IDE software to run that sketch and I don’t know for sure if Processing is available for the Pi.

Fortunately, you don’t really need the Processing sketch anymore since Arduino has included a utility in the IDE called the ‘Serial Plotter.’

Serial Plotter can be accessed from the Tools menu in the more modern versions of Arduino. (at least 1.8.5 and up, possibly earlier) Serial Plotter does essentially the same thing that the Processing sketch does.

[This is the sketch you want for the Arduino IDE. Give that a try and then start the serial plotter and you should be good to go.](AD8232_Heart_Rate_Monitor/Software/Heart_Rate_Display_Arduino/Heart_Rate_Display_Arduino.ino at master · sparkfun/AD8232_Heart_Rate_Monitor · GitHub)](Download Processing / Processing.org)

Hello,

Sorry to be “bugging” you again… I don’t see the error. I rebooted the Mac, and plugged in the FTDI/promini/ad8232, and see the flashing led, but only trash in the serial plotter. It is trying. Can you find the problem?

Thanks, Stefan

Arduino: 1.8.9 (Mac OS X), Board: “Arduino Pro or Pro Mini, ATmega168 (3.3V, 8 MHz)”

/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware -tools /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/tools-builder -tools /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0000_0000 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846 -warnings=none -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_653145 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware -tools /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/tools-builder -tools /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0000_0000 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846 -warnings=none -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_653145 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
Using board 'pro' from platform in folder: /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/sketch/HeartMonitor2.ino.cpp -o /dev/null
Generating function prototypes...
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/preproc/ctags_target_for_gcc_minus_e.cpp
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/sketch/HeartMonitor2.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_653145/core/core_arduino_avr_pro_cpu_8MHzatmega168_319d1e1cd42eec2aa6b4c899fd467cd4.a
Linking everything together...
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega168 -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/sketch/HeartMonitor2.ino.cpp.o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/../arduino_cache_653145/core/core_arduino_avr_pro_cpu_8MHzatmega168_319d1e1cd42eec2aa6b4c899fd467cd4.a -L/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846 -lm
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.eep
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.hex
/Users/stefansylvander/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-size -A /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_906846/HeartMonitor2.ino.elf
Sketch uses 2232 bytes (15%) of program storage space. Maximum is 14336 bytes.
Global variables use 188 bytes (18%) of dynamic memory, leaving 836 bytes for local variables. Maximum is 1024 bytes.
An error occurred while uploading the sketch

I misspoke: the garbage characters in the Serial monitor are actually a series of repeating patterns, but no graph in the monitor, nor any in the plotter. I did update the Arduino graphics library in hopes that might solve the issue, but no such luck.
Here’s the latest error message, baudrate set at 9600:

Arduino: 1.8.9 (Mac OS X), Board: “Arduino Pro or Pro Mini, ATmega168 (3.3V, 8 MHz)”

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -warnings=default -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -warnings=default -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
Using board 'pro' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /dev/null
Generating function prototypes...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427/core/core_arduino_avr_pro_cpu_8MHzatmega168_51f02b7210b938436b779d1c032618e1.a
Linking everything together...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega168 -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp.o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/../arduino_cache_393427/core/core_arduino_avr_pro_cpu_8MHzatmega168_51f02b7210b938436b779d1c032618e1.a -L/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -lm
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.eep
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.hex
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-size -A /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf
Sketch uses 2232 bytes (15%) of program storage space. Maximum is 14336 bytes.
Global variables use 188 bytes (18%) of dynamic memory, leaving 836 bytes for local variables. Maximum is 1024 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega168 -carduino -P/dev/cu.usbserial-A506PAHF -b19200 -D -Uflash:w:/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.hex:i 
An error occurred while uploading the sketch

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/stefansylvander/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-A506PAHF
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200

===========================================================================

[b]So I switched the plotter baudrate to 19200, but got these errors instead:[/b]
Arduino: 1.8.9 (Mac OS X), Board: "Arduino Pro or Pro Mini, ATmega168 (3.3V, 8 MHz)"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -warnings=default -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/stefansylvander/Documents/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -warnings=default -build-cache /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Applications/Arduino.app/Contents/Java/hardware/tools/avr -verbose /Users/stefansylvander/Documents/Arduino/HeartMonitor2/HeartMonitor2.ino
Using board 'pro' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /dev/null
Generating function prototypes...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_cache_393427/core/core_arduino_avr_pro_cpu_8MHzatmega168_51f02b7210b938436b779d1c032618e1.a
Linking everything together...
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-gcc -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega168 -o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/sketch/HeartMonitor2.ino.cpp.o /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/../arduino_cache_393427/core/core_arduino_avr_pro_cpu_8MHzatmega168_51f02b7210b938436b779d1c032618e1.a -L/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150 -lm
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.eep
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.hex
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-size -A /var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.elf
Sketch uses 2232 bytes (15%) of program storage space. Maximum is 14336 bytes.
Global variables use 188 bytes (18%) of dynamic memory, leaving 836 bytes for local variables. Maximum is 1024 bytes.
An error occurred while uploading the sketch
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega168 -carduino -P/dev/cu.usbserial-A506PAHF -b19200 -D -Uflash:w:/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_391150/HeartMonitor2.ino.hex:i 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/stefansylvander/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-A506PAHF
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: ser_open(): can't open device "/dev/cu.usbserial-A506PAHF": Resource busy

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Exception in thread "Thread-100" java.util.ConcurrentModificationException
	at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at cc.arduino.contributions.libraries.LibrariesIndexer.rescanLibraries(LibrariesIndexer.java:167)
	at processing.app.BaseNoGui.onBoardOrPortChange(BaseNoGui.java:680)
	at processing.app.Base.onBoardOrPortChange(Base.java:1317)
	at processing.app.Editor$UploadHandler.run(Editor.java:2106)
	at java.lang.Thread.run(Thread.java:748)

======================================================================

One final question re the sketch program: it reads input (hi or lo) from the ad8232, right? So how does the plotter program produce the varying values to make a continuous wave shape?

Thanks, Stefan

Hi Stefan.

I’m not sure what’s causing the Java errors in Arduino. You might stick to using a PC or Mac to start with and then move over to the Pi once you have things working. It could be that you need to update Java or Arduino on the Pi, but I’ve never run Arduino on a Pi so I can’t say for sure.

One final question re the sketch program: it reads input (hi or lo) from the ad8232, right? So how does the plotter program produce the varying values to make a continuous wave shape?

The leads off detection pins are simple highs and lows, but the actual output from the board is an analog signal that goes to pin A1. The wave form is produced by converting the varying analog signal to a stream of numbers and then drawing a graph based on the value of those numbers as they change over time.

Sorry if this is a duplicate response. I am only using my Mac so far. And just to be clear, the sketch has loaded without errors a few times, and I can see the Serial monitor showing output, but nothing in the Serial plotter. I’ll just keep trying, maybe even with my Linux laptop, before I try with the Raspberry Pi Zero. (Or, why wait to use the Rpi0? I could have all three vendors working together, Sparkfun/Arduino/Rpi! :-))

Cheers, Stefan

last line of sketch load on iMac :

An error occurred while uploading the sketch

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega168 -carduino -P/dev/cu.usbserial-A506PAHF -b19200 -D -Uflash:w:/var/folders/_3/1d3gv2t921n284062jzh5wxc0000gr/T/arduino_build_593177/HeartMonitor2.ino.hex:i

Is this meaningful? Serial monitor shows output; plotter is blank.

Stefan

The error text you’ve provided doesn’t seem to be complete. Can you post the full error message?

Here’s today’s error msgs; after a re-install:

Arduino: 1.8.9 (Linux), Board: “Arduino Pro or Pro Mini, ATmega168 (3.3V, 8 MHz)”

/home/pi/Downloads/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/Downloads/arduino-1.8.9/hardware -tools /home/pi/Downloads/arduino-1.8.9/tools-builder -tools /home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/pi/Downloads/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /tmp/arduino_build_517038 -warnings=none -build-cache /tmp/arduino_cache_894774 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -verbose /home/pi/Desktop/HeartMonitor2/HeartMonitor2.ino
/home/pi/Downloads/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /home/pi/Downloads/arduino-1.8.9/hardware -tools /home/pi/Downloads/arduino-1.8.9/tools-builder -tools /home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/pi/Downloads/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega168 -vid-pid=0403_6001 -ide-version=10809 -build-path /tmp/arduino_build_517038 -warnings=none -build-cache /tmp/arduino_cache_894774 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -verbose /home/pi/Desktop/HeartMonitor2/HeartMonitor2.ino
Using board 'pro' from platform in folder: /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr
Detecting libraries used...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_517038/sketch/HeartMonitor2.ino.cpp -o /dev/null
Generating function prototypes...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_517038/sketch/HeartMonitor2.ino.cpp -o /tmp/arduino_build_517038/preproc/ctags_target_for_gcc_minus_e.cpp
/home/pi/Downloads/arduino-1.8.9/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_517038/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega168 -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_517038/sketch/HeartMonitor2.ino.cpp -o /tmp/arduino_build_517038/sketch/HeartMonitor2.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /tmp/arduino_cache_894774/core/core_arduino_avr_pro_cpu_8MHzatmega168_f28ce87a8c909a119ac3a78d21fa426d.a
Linking everything together...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega168 -o /tmp/arduino_build_517038/HeartMonitor2.ino.elf /tmp/arduino_build_517038/sketch/HeartMonitor2.ino.cpp.o /tmp/arduino_build_517038/../arduino_cache_894774/core/core_arduino_avr_pro_cpu_8MHzatmega168_f28ce87a8c909a119ac3a78d21fa426d.a -L/tmp/arduino_build_517038 -lm
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_517038/HeartMonitor2.ino.elf /tmp/arduino_build_517038/HeartMonitor2.ino.eep
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_517038/HeartMonitor2.ino.elf /tmp/arduino_build_517038/HeartMonitor2.ino.hex
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_517038/HeartMonitor2.ino.elf
Sketch uses 2232 bytes (15%) of program storage space. Maximum is 14336 bytes.
Global variables use 188 bytes (18%) of dynamic memory, leaving 836 bytes for local variables. Maximum is 1024 bytes.
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avrdude -C/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf -v -patmega168 -carduino -P/dev/ttyUSB0 -b19200 -D -Uflash:w:/tmp/arduino_build_517038/HeartMonitor2.ino.hex:i 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/pi/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

I was checking the forums and noticed this question. I have not tried using the Raspberry Pi’s Arduino IDE with the Arduino Pro Mini before. However, the error that you are seeing is usually due to a couple of reasons regardless of being on the Pi or your Mac iOS X.

Arduino: 1.8.9 (Linux), Board: “Arduino Pro or Pro Mini, ATmega168 (3.3V, 8 MHz)”
.
.
.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
.
.
.

One of the main reasons for the Arduino compile error that sticks out from your setup is that you are selecting the wrong board definition. It looks like you are using the Pro Mini ATmega328P (the title of your post states it is the “promini238”)? Make sure to select the correct Processor so that it shows up as => Arduino Pro or Pro Mini, ATmega328P (3.3V, 8MHz). The ATmega328P is different from the ATmega168P. It would not compile or upload when using the wrong Processor. This is stated in the hookup guide for “https://learn.sparkfun.com/tutorials/us … rogramming” and briefly in the link from your error output => http://www.arduino.cc/en/Guide/Troubleshooting#upload.

I tested the example code in Arduino IDE v1.8.8 and was able to get it working with the Arduino Serial Plotter.

Thanks for your comments. (Yes, typo ‘promini238’). I am using a Pro Mini (3.3V,8mHz) but can not determine which one, 328P or 168P. How can I tell which one I have? The errors indicate what I have chosen, right, rather than what the processor finds from the board itself during the compile? So I need to set the sketch correctly, yes? You’ll notice in the “Blink” example below, I’ve added a counter to try to stop the program. (It cannot be stopped, neither with the reset button on powering it down, so I thought a programmed exit might do it. This in order to load the Heart Monitor program without interference from Blink. Once I get this correct, I plan to load the Heart Monitor again.

=====================================================================================================================

void loop()
  {
  for (int i = 1; i < 11; i++)
    {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
    }
 return 0;
}

============================================================================================

Arduino: 1.8.9 (Linux), Board: “Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)”

/home/pi/Downloads/arduino-1.8.9/arduino-builder -dump-prefs -logger=machine -hardware /home/pi/Downloads/arduino-1.8.9/hardware -tools /home/pi/Downloads/arduino-1.8.9/tools-builder -tools /home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/pi/Downloads/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=0403_6001 -ide-version=10809 -build-path /tmp/arduino_build_667418 -warnings=none -build-cache /tmp/arduino_cache_181311 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_821509/Blink.ino
/home/pi/Downloads/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware /home/pi/Downloads/arduino-1.8.9/hardware -tools /home/pi/Downloads/arduino-1.8.9/tools-builder -tools /home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -built-in-libraries /home/pi/Downloads/arduino-1.8.9/libraries -libraries /home/pi/Arduino/libraries -fqbn=arduino:avr:pro:cpu=8MHzatmega328 -vid-pid=0403_6001 -ide-version=10809 -build-path /tmp/arduino_build_667418 -warnings=none -build-cache /tmp/arduino_cache_181311 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr -verbose /tmp/arduino_modified_sketch_821509/Blink.ino
Using board 'pro' from platform in folder: /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr
Using core 'arduino' from platform in folder: /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr
Build options changed, rebuilding all
Detecting libraries used...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_667418/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_667418/sketch/Blink.ino.cpp -o /tmp/arduino_build_667418/preproc/ctags_target_for_gcc_minus_e.cpp
/home/pi/Downloads/arduino-1.8.9/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_667418/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /tmp/arduino_build_667418/sketch/Blink.ino.cpp -o /tmp/arduino_build_667418/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -x assembler-with-cpp -flto -MMD -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_pulse.S -o /tmp/arduino_build_667418/core/wiring_pulse.S.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WInterrupts.c -o /tmp/arduino_build_667418/core/WInterrupts.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/hooks.c -o /tmp/arduino_build_667418/core/hooks.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring.c -o /tmp/arduino_build_667418/core/wiring.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_analog.c -o /tmp/arduino_build_667418/core/wiring_analog.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_digital.c -o /tmp/arduino_build_667418/core/wiring_digital.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_pulse.c -o /tmp/arduino_build_667418/core/wiring_pulse.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/wiring_shift.c -o /tmp/arduino_build_667418/core/wiring_shift.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp -o /tmp/arduino_build_667418/core/HardwareSerial.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp -o /tmp/arduino_build_667418/core/HardwareSerial1.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp -o /tmp/arduino_build_667418/core/PluggableUSB.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/abi.cpp -o /tmp/arduino_build_667418/core/abi.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/CDC.cpp -o /tmp/arduino_build_667418/core/CDC.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp -o /tmp/arduino_build_667418/core/HardwareSerial0.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp -o /tmp/arduino_build_667418/core/HardwareSerial2.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp -o /tmp/arduino_build_667418/core/HardwareSerial3.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/IPAddress.cpp -o /tmp/arduino_build_667418/core/IPAddress.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Print.cpp -o /tmp/arduino_build_667418/core/Print.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Stream.cpp -o /tmp/arduino_build_667418/core/Stream.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/Tone.cpp -o /tmp/arduino_build_667418/core/Tone.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/USBCore.cpp -o /tmp/arduino_build_667418/core/USBCore.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WMath.cpp -o /tmp/arduino_build_667418/core/WMath.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/WString.cpp -o /tmp/arduino_build_667418/core/WString.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/main.cpp -o /tmp/arduino_build_667418/core/main.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10809 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino -I/home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/variants/eightanaloginputs /home/pi/Downloads/arduino-1.8.9/hardware/arduino/avr/cores/arduino/new.cpp -o /tmp/arduino_build_667418/core/new.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/CDC.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/HardwareSerial.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/HardwareSerial0.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/HardwareSerial1.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/HardwareSerial2.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/HardwareSerial3.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/IPAddress.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/PluggableUSB.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/Print.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/Stream.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/Tone.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/USBCore.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/WInterrupts.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/WMath.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/WString.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/abi.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/hooks.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/main.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/new.cpp.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring_analog.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring_digital.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring_pulse.S.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring_pulse.c.o
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc-ar rcs /tmp/arduino_build_667418/core/core.a /tmp/arduino_build_667418/core/wiring_shift.c.o
Archiving built core (caching) in: /tmp/arduino_cache_181311/core/core_arduino_avr_pro_cpu_8MHzatmega328_f28ce87a8c909a119ac3a78d21fa426d.a
Linking everything together...
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /tmp/arduino_build_667418/Blink.ino.elf /tmp/arduino_build_667418/sketch/Blink.ino.cpp.o /tmp/arduino_build_667418/core/core.a -L/tmp/arduino_build_667418 -lm
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_667418/Blink.ino.elf /tmp/arduino_build_667418/Blink.ino.eep
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom /tmp/arduino_build_667418/Blink.ino.elf /tmp/arduino_build_667418/Blink.ino.hex
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avr-size -A /tmp/arduino_build_667418/Blink.ino.elf
Sketch uses 960 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/bin/avrdude -C/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_667418/Blink.ino.hex:i 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/pi/Downloads/arduino-1.8.9/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/pi/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Any Pro Mini made in the last 7ish years will have a 328 on it rather than a 168 so unless you’re using a very old Pro Mini, you would have the 328.

Whenever you load new code onto the board, the old code will be erased so don’t worry about trying to stop the code already on the board. The newest sketch will always replace what was there previously.

Can you post a photo showing how you have the Pro Mini connected to your computer? That might be helpful in determining what is causing your error.

Can I post a 9mB video-?-just to show that the old Blink program is still running, even after a reboot (I changed the loop to .5 sec on/off).

Which photo formats are allowed in this forum?

Thanks, Stefan

JPEG is fine. You could even link to photos on a photo of file sharing site if you wanted too. Video would be too big to post so a link to that (Youtube?) would work.

Here’s a jpeg… reduced resolution. Working on youtube video–first attempt very poor quality.

https://youtu.be/fiEW3KWdylU

OK, it looks like you’re still trying to compile code on a Pi.

Here’s what I’d recommend:

  • - If you have a PC, use that. This is much easier to do on a Windows PC than on a Mac.
  • - If you don't have a PC, go back to your Mac and delete Arduino.
  • - Download and re-install Arduino.
  • - Install the drivers for FTDI on your Mac. (Directions can be found [[here](https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/mac) on how to do install drivers on a Mac.)
  • - Now, try uploading the blink example to the Pro Mini. [u]Make sure you have the correct serial port selected and the correct board/voltage selected[/u].
  • ](https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/mac)

    If you get this far, everything else in the tutorial will work just fine.