Code Monkey home page Code Monkey logo

remote-robot's Introduction

Remote-Robot

Remote robot using STM32, ESP8266 and Android
Video Tutorial: https://www.youtube.com/watch?v=vzHLPQ25O1Q

Photos

alt text

Java Desktop App

  • Use WASD to move around
  • QWERTY digits (1,2,3...,9,0) to set the speed (power) from 10% (1) to 100% (0)
  • R to toggle Driving Assintance
  • L to toggle LED Lights alt text

Wiring Diagram

alt text

STM32 Pinout:
alt text

Code Snippets

[STM32 C code] You have to change your WiFi SSID credentials in "myLibrary.h":

#define WiFi_Credentials	"AT+CWJAP=\"WiFiSSID\",\"WiFiPASSWORD\"\r\n"

[STM32 C code] Calculating the battery percentage:

  • You have to list all voltege regulators and components that are connected directly to the battery
  • Find out their lowest voltage needed to run (or regulate) properly
  • The highest low voltage will be a 0% of the battery for you (in this case minVoltage = 6.0V)
  • The 2 cell Lithium battery has voltage range 6.0V to 8.4V (voltageRange = 2.4V)
  • Estimate the voltage drop due to current load (voltageDrop = 0.05V)
  • Formula: percentage = ((batteryVoltage - minVoltage) / (voltageRange - voltageDrop))*100.0f;
void calculateBattery()
{
	percent = ((batteryVoltage-6.0f) / 2.35f)*100.0f;
	if(percent > 100.0f)
		percent = 100.0f;
}

[Java Desktop App] Also you have to change the IP addresses in "IP_STM32.txt" and "AndroidIP.txt" files,
which is automatically generated if does not exist and the JAR app is launched.

DDNS

Use a DDNS service such as No-IP to create a hostname alt text

Add DDNS credentials to your router
alt text

Reserve IP address of your IoT device (make it static, so it won't change over time)
alt text

Setup a port forwarding rules for STM32 (ESP8266) and Android too.
alt text

Now you can access the robot from anywhere.

Ultrasonic Sensors repository

https://github.com/viktorvano/STM32F103C8T6_HC-SR04

remote-robot's People

Contributors

viktorvano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

remote-robot's Issues

What are the devices?

I was wondering what are the names of the devices on the top and the bottom of this image?

Untitled

esp12f problem

my esp12 connect wifi then reset. always doing that. I will send email please contact me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.