• This repository has been archived on 04/Apr/2021
  • Stars
    star
    103
  • Rank 331,107 (Top 7 %)
  • Language Arduino
  • Created about 8 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An arduino firmware that outputs a PWM signal for steering motor control via serial.

Car Controller

This project provides firmware that runs on an arduino. This firmware, coupled with an arduino, provides a serial (UART) interface for outputting PWM signals. Something like a raspberry pi has lots of processing power and I/O; but it can't reliably drive PWM outputs for servos etc. Due to the PWM being done in software, any slight lag will effect the precise timing required.

By sending the steering and motor outputs over UART to a real time microcontroller, reliability can be ensured. This is because these microcontrollers are specifically designed for stuff like this with very precise timing. The firmware also reports the voltage of a battery; which is great for remote monitoring and safety. I created this for use in our machine learning car.

##Click the video below to see it in action! IMAGE ALT TEXT

Setup

It's fairly straight forward to use. The PWM output and voltage monitoring pins are in configurable variables at the start of the program. Specify which pins you're using; bear in mind the voltage monitor must be an analog input.

Voltage Monitoring

If the maximum voltage of the battery is less than your microcontroller's operating voltage no extra hardware is needed. Just splice a wire into where you want to measure and connect it to the arduino's pin. For LiPo and other multi cell batteries, it is generally only necessary to monitor a single cell. Simply tap into the first cell on the balance connector. If you need a higher voltage lookup how to make a voltage divider to measure battery on arduino.

Steering/Motor Driver

Steering

The steering pin will output a PWM signal using Ardiuno's built in servo library. It will drive practically any servo.

Motor Controller

The motor controller pin will output a PWM signal using the arduino servo library. This means it will drive most servos (ie throttle for an IC engine) or most ESC's.

Usage

You can send it two commands via UART, "motor,x" to control motor output and "steer,x". X is usually a value between 40 and 150 as the input centers around 90. Car-controller also continusously sends back a measured voltage over the UART when the correct flag is set. If the debug flag is set to true when uploaded, it sends debug messages over UART.

License

As with all my projects this is released under a GNU GPLv3 or later license in the hope it will be useful.

References

This is what we used in Kendricks Suiron project. Checkout my detailed blog post showing this in action! (link)

More Repositories

1

OpenCV-for-Pi

[Archived - no longer maintained] A pre-compiled binary of OpenCV 3.1.0 for the Raspberry Pi.
Shell
184
star
2

grandstreamClickToCall

A chrome extension that allows you to click on a phone number and send it directly to a grandstream handset to initiate a call
JavaScript
12
star
3

pythonSB

A python implementation of the Servo Blaster program, for controlling servos on a raspberry pi.
Python
7
star
4

MAVControl

WIP (DO NOT USE) browser based ground control station for ardupilot vehicles (python backend)
JavaScript
6
star
5

CarCompanion

An arduino car companion that can add multiple features to older cars normally only found on new ones!
Arduino
3
star
6

ifb299

IFB299 Assignment at QUT
Python
2
star
7

govhack2017

JavaScript
1
star
8

OpenSolo

A Fully Open-Source Software Solution for the iMX6 in the 3DR Solo hardware
Shell
1
star
9

jsensor

Open source sensor platform based on ESP8266 and compatible with MQTT.
Arduino
1
star
10

busbot

[In Progress] A chat bot that uses Facebook messenger and the serverless framework to convey Translink bus times.
JavaScript
1
star
11

Unearthed2017

Team "Under Pressure" awesome stuff for Unearthed 2017
Python
1
star
12

arduino-vixen-controller

Use your arduino to allow vixen 3 to control a bunch of relays or MOSFETS!
Arduino
1
star
13

avocentpdu

A python module that allows switching outlets on/off on an Avocent PDU (PM3012V, may work with others)
Python
1
star
14

capstone2020

Vue
1
star
15

whereistrumpbanned.com

[Archived] A simple website to track websites and services that have banned or restricted Donald Trump's accounts.
Vue
1
star
16

BoeingHackathon2018

Our teams entry to the Boeing Hackathon in Brisbane 2018
HTML
1
star