Package: rocket-pi
# Rocket-pi## Remote open control - key enabling technology for RPI
—Rocket is a user customizable remote control application intended mainly for electronics hobby projects.Rocket connects 2 wheel drive remote control via WiFi (TCP). The network can be either in AP mode or STA mode. Using the APP you can control all movement directions plus arm and tool servos. In STA mode, your hobby target is a real Internet of Things device and can be controlled through WAN and LAN remotely.>Disclaimer: Don’t use Rocket for life support systems or any other situations where system failure may affect user or environmental safety. Please don’t use Rocket in projects where high-level security is required.All the commands send from Rocket are text strings, ending with command ending CR (carriage return), ASCII 13 which is hex code 0x4.
All required adjustments and command interpretations are stored and done in python.
Probably you will need to adapt the Rocket to meet the requirements of your hobby project. In that case you will need python knowledge regarding script and direction converter module adaptation.
Bundling webiopi as core component enforces the use of Raspberry PI Zero, 2 or 3.
In general Rocket depends, demands and uses webiopi server on target side. The URL of the web site depends on the network infrastructure. It is eitherhttp://”your home ip address”:8000 in STA, orhttp://192.168.4.1:8000in AP mode.
By accessing the site for the first time you have to enter the default credentials:user = webiopi password = raspberryAfter the log on accomplishing, on your browser appears website with joystick control. Each button use macros behind. Now you are able replace the demonstration code and achieve the desired functionality.
Using this technique gives you the opportunity of debugging and testing your code in the office. As long as you working on the desktop environment, this could be the primary choice as well.
For the final release, controlling terrain car products requires mobile application. In this case the pilot need to disconnect from any other Wi-Fi networks and explicitly connect to the terrain car Access Point in order to control all functions.
The PyPi installation script gives you the opportunity to define/change the AP SSID and key by each sequential setup and ensure acceptable level of security.I published recently google android app on the playstore, called “Rocket”https://play.google.com/store/apps/details?id=com.gulliversoft.rocketThe “Rocket” allows you to trigger remotely any of the macros defined in your code, even they are not visible on the site.
In the current release V1.0, Rocket UI is capable with constrained range of 12 @webiopi.macro commands.###CommandsForward()TurnLeft()Reverse()TurnRight()Stop()ArmUp()ArmDown()TiltUp()TiltDown()Lights()FlashAll()Move(short int, short int)##Mockup project
Before you start with servos and wheels, you will probably need first to approach the problem of controlling a servo, by using mock-up.
The rocket demonstration project utilizes two MAX7219 IC, instead of real drives. Each command activates the LED matrix by tracing letter or digit on it. Interfacing LED matrix with the MAX7219 driver requires using hardware SPI on the Raspberry Pi.
The rocket-pi setup covers all steps of hardware activation and library deployment.##Setup
The easiest way of installing “Rocket”, is to use the commandpip3 install rocket-pi. This requires you have access to internet.
After the pip3 execution is done, you need to callpython3 -m rocket. The rocket logo appears after a while and the prompt requires your attention. The promptAccess point SSID:requests new WiFi identification for your hobby model.
In order to prevent collisions, you need unique name for each hobby model. In the next step you need to input new WPA password, which will be associated with the name you gave in the step before.
In the next steps the setup goes through python environment and services ensuring the rocket functionality on your platform. At the end you need to take the choice betweenaccess WebIOPi over Internet [y/n]. This could be desirable option for Internet of Things devices.—<p align=”center”>Copyright &copy; 2020-2021 Martin Shishkov - gulliversoft, licensed under GPL3</p>