Step 22Wiring arduino 2
digital inputs:
Pin 4: steer right from hand controller (simple +5V from a rocker switch)
Pin 5: Steer left from hand controller (simple +5V signal from a rocker switch)
Pin 6: From balance point fine tune switch on hand controller (simple + 5V signal from a rocker switch)
Pin 7: From balance point fine tune switch on hand controller (simple +5V from a rocker switch)
Pin 9: From deadman button on hand controller (again, simple +5V signal from a rocker switch)
digital output:
Pin 8: Pulses to oscilloscope, one per loop of program, allows me to measure the cycle time of the program which we need to know to do some of the maths for tilt angle. You dont need to worry about this. The cycle time wont change much unless you modify my software a lot.
| « Previous Step | Download PDFView All Steps | Next Step » |


























































































Also, if about to go up a slope you might want to raise the "nose" of the board slightly, this is how you do it.
The IMU uses 3.3V from the arduino board which has a regulated 3.3V supply on it for just this sort of peripheral (the newer ones anyway).
The arduino board also has a regulated 5V pin on it which is a 5V supply, again for peripheral devices.
Supply to the arduino has to be in range of 7V to 12V via the power input socket.
Easiest way to get going is to connect a 9V battery to it.
You can use a so-called linear voltage regulator to convert from 24 V of the main batteries to 7V but it will generate lots of heat and waste some of your main battery power.
I have ordered a more exotic one which works in a different way and is far more efficient. If it works OK I will add it to the instructable.
Best wishes
John
but were do i get the 5 volts from the board so i could bring it to the hand controller