Exercise 3º Drive a DC motor
The simplest and not for a real use.Till now, I was communicating from the arduino to the cubieboard, this is quite important, but now, I've to send the information from the cubieboard to the arduino.
For example, I send the amount of milliseconds that the dc-motor must be running.
The circuit is on of the most simplest
You can find all the information here (very good tutorials)
I took this schema
and here is the circuit, I had to change some values about resistor, transistor, etc. Cause I've to reutilizes some old components
cu -s 115200 -l /dev/ttyS0
Obvious it can be do better, but just is to show the idea.