PhysicsAnonymous / CameraSlider

Arduino code for a custom-built camera slider
4 stars 2 forks source link

Arduino IDE #1

Open CBis817 opened 6 years ago

CBis817 commented 6 years ago

Hello I am new to this and i need help to figure out the problem. I am trying to build my slider and fount your program. Super excellent. When i do : Arduino IDE Open the sketch, add the Bounce2 and AccelStepper libraries, and click the check mark. This is what i get .......... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\core\core.a" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\core\new.cpp.o" Archiving built core (caching) in: C:\Users\UTILIS~1\AppData\Local\Temp\arduino_cache_405005\core\core_arduino_avr_mega_cpu_atmega2560_0c812875ac70eb4a9b385d8fb077f54c.a Linking everything together... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327/Slider.ino.elf" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\sketch\Slider.ino.cpp.o" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\libraries\Bounce2\Bounce2.cpp.o" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\libraries\AccelStepper\AccelStepper.cpp.o" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327\libraries\AccelStepper\MultiStepper.cpp.o" "C:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327/core\core.a" "-LC:\Users\UTILIS~1\AppData\Local\Temp\arduino_build_176327" -lm C:\Users\UTILIS~1\AppData\Local\Temp\ccBOb1Vt.ltrans0.ltrans.o: In function `main':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

Utilisation de la bibliothèque Bounce2 version 2.3 dans le dossier: C:\Users\Utilisateur\Documents\Arduino\libraries\Bounce2 Utilisation de la bibliothèque AccelStepper version 1.57.1 dans le dossier: C:\Users\Utilisateur\Documents\Arduino\libraries\AccelStepper exit status 1 Erreur de compilation pour la carte Arduino/Genuino Mega or Mega 2560

CBis817 commented 6 years ago

Thanks very much i am able to see in the ide all the files. I am trying to figure out now how to wire things up. In the config.hpp i can see the pin to wire to but my question is the steppers needs 4 pins out and i can only see one pin the pin 2 and 3 for each motors. Can you provide me with a quick diagrammon how to wire things up. It would be so appreciated.

CBis817 commented 6 years ago

e4ba692b-50ab-4e60-8258-b9f0ef2b5abc