Aspiration de copeaux facile – Programmer l’Arduino – 7/7

Aspiration de copeaux facile – Programmer l’Arduino – 7/7


Program an Arduino
(for the black box controler) Just download the Arduino Software
for your Operating system (Windows or IOS or Linux) Install it and the USB drivers if it asks you to. You will then get the controler-board.ino file
from github as we have seen earlier. The file is under the controler-board sub-directory You can download the complete ZIP or just copy a file in
your copy/paste buffer We launch the Arduino IDE software and open the
controler-board.ino file Here you see the .ino file. You will have to adapt the code to your needs: here I have 3
blast gates connected on 3 pins (D3, D4, D5). Add or remove
lines to add or remove blast gates Do not use pin D6 as it is reserved as a manual switch in my
code Do not use pin D2 as it is reserved for the relay output Go to the tools menu: choose “Arduino Nano”, “ATMega328p”
and select the PORT COM (plug the arduino before), but not
COM1. The top left button compiles the code (check if there are
some errors), and the Upload button uploads the code to the
Arduino When the upload starts, leds will blink rapidly on your
Arduino Nano. The loop button on the top right displays the program
output. It helps for debugging problems Here you can see some crap output as the Arduino I’ve
programmed is not connected to any blast gate so it see some
blast gate activation as arduino input are “floating”
(random values comes as input)

Leave a Reply

Your email address will not be published. Required fields are marked *