The official ride of Americas
jaguar
is the project name for a Nerves-based WiFi controlled
car. It currently targets rpi4
but more hardware support is planned.
jaguar-1
is the first prototype of thejaguar
concept.jaguar-2
is the next-gen version currently in planning stage.
For convenience, we are linking most of the components on Amazon:
- Raspberry Pi 4 model B
- L298N motor driver
- Two dual shaft 3v/9v DC gear motor
- Two motor controlled wheels and an extra free wheel
- RC car chassis
You can get most of the parts with this kit.
The initial implementation consist of a Nerves application that controls a L298n motor driver by listening for commands over a TCP connection that is established to the backend at application startup.
Basic commands are then issued by the backend in order to control the speed of the motors for easy steering and moving backwards. The commands are then translated to GPIO commands over the drivers pins.
Speed is adjusted by controlling the driver via PWM signals over GPIO emulation.
Communication via TCP is currently naive and error prone and we are currently reworking on how the car components are structured for the next iteration.
Most of the assembly images are in img/
.
To start your jaguar-1
:
export MIX_TARGET=my_target
or prefix every command withMIX_TARGET=my_target
. For example,MIX_TARGET=rpi4
- Install dependencies with
mix deps.get
- Create firmware with
mix firmware
- Burn to an SD card with
mix burn
- Official Nerves docs: https://hexdocs.pm/nerves/getting-started.html
jaguar
source: https://github.com/esl/jaguar