Skip to content

xerebus/rpar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic info

rpar is an interface to control a robot running on a Raspberry Pi and using an Arduino for sensor and motor control.

Usage

Structure

rpar is the bash script that's mean to be run on the Raspberry Pi (or other mobile computer) to send a particular signal to the Arduino. It also prepares tty settings on the RPi for proper communication through the serial port at 9600 baud. The Arduino project, rparrcv, is a program that runs constantly on the Arduino and executes certain actions (like movement) based on serial input.

Setup and Movement

rpar <cmd> accepts the following values for <cmd>:

up - prepare the serial port

f - step forward

b - step backward

l - step left

r - step right

WASD Control

Use screen $PORT 9600 where $PORT is the serial port of the Arduino to access the serial monitor. W, A, S, and D can be used from here to send the respective serial outputs. It is a known issue that holding down a key will send one keypress, do nothing for a second or two, and then repeat the key - this is due to keyboard settings.

About

An interface to control a robot running on a Raspberry Pi and using an Arduino for sensor and motor control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages