By Sergio Monedero
Released on April 24th 2015
http://thingsandcode.com
Build an Smart Car using an Intel Edison with an Arduino Breakout board and a L298N motor controller. Move the car and see the camera live stream using a web interface.
- Connect Intel Edison board Arduino pins to the L298N controller in this way:
- IN1 -- Pin 7
- IN2 -- Pin 6
- IN3 -- Pin 5
- IN4 -- Pin 4
- Vin -- Motor's power supply positive terminal (6 - 12v)
- GND -- Motor's power supply positive terminal and GND pin of Arduino.
- OUT1 -- First motor
- OUT4 -- Second motor
- Set the small switch to the OFF position by pushing it toward the big USB port connector and connect the webcam.
- Power on the Intel Edison using the DC power jack.
- Connect the Intel Edison board to a network with an static IP.
- Go to
misc
folder and copyinstall_ffmpeg.sh
to/home/root
on your Intel Edison using a SCP client. - [OPTIONAL] If you are using a Sony Eye webcam you need the kernel modules to make it work. Go to
misc/kernel_modules
folder and copy all the files to/home/root
on your Intel Edison using a SCP client. - Open a SSH, connect with your Intel Edison, set permissions to execute
install_ffmpeg.sh
, connect the Intel Edison to the Internet and execute the script. - Go to
Smartcar
folder and openSmartCar.xdk
with Intel XDK IoT Edition. - Click on
Install/Build
button of Intel XDK to fetch dependencies and compile the code. - Click on
Upload
to send the program to the device.
Open a web browser and go to http://[IP_OF_EDISON_BOARD]:8080/ There will be 4 buttons to move the car forward (Avanzar), backward (Retroceder), turn left (A la izquierda), and turn right (A la derecha).
** More info and other projects at http://thingsandcode.com **