To connect your robot to WIFI at home:
- Your robot will turn into a WIFI hotspot the 1st time you try to use away from the last WIFI it was connected to.
- On you phone, go to settings / WIFI and choose the robot number that shows as a hotspot (no password)
- Usually a web page automatically opens, that allows you to choose your WIFI and set password. If the page does not open, go to a browser and type in URL bar: 192.168.4.1
- Once robot is connected, it’s hotspot will disappear (this can take a few minutes to not show on your phone) Re-connect your phone to it’s regular WIFI and start the Blynk app on your phone.
- After you connect the 1st time, robot will automatically connect thereafter, unless it is out of you WIFI range.
How to Install Sloeber at home (long and complex!)
New Code Snippets:
Code for Apple Joystick:
if (x==2 && y==3 ) //place condition between parenthesis Place what you want to do between braces
{
motorMove(0, 1,900); //motor 1 dir, motor 2 dir, power
}
if (x==2 && y==2) //place condition between parenthesis Place what you want to do between braces
{
brake(); //stops the motors
}
if (x==3 && y==2 ) //place condition between parenthesis Place what you want to do between braces
{
motorMove(1, 1,900); //motor 1 dir, motor 2 dir, power
}
if (x==1 && y==2) //place condition between parenthesis Place what you want to do between braces
{
motorMove(0, 0,900); //motor 1 dir, motor 2 dir, power
}
if (x==2 && y==1) //place condition between parenthesis Place what you want to do between braces
{
motorMove(1, 0,900); //motor 1 dir, motor 2 dir, power
}
///////////////////////////////////////////////////////////////////////////////////
If you have an old Android Phone, download this version of Blynk on the phone or tablet:
https://apk.cafe/download?file_id=610825/blynk-arduino-esp8266-rpi
Link to Blynk Server:
Hack your robot!
Your NodeMCU can be programmed with many different languages and IDEs.
Download the Sloeber IDE above, or download here.
You can also use the Arduino IDE to program. C++(not the online version, though)
There is also ESP8266BASIC which the whole IDE lives on the robot.Not quite as versatile as the Arduino or PlatformIO versions, though.
You can also program it in a language called LUA. Information here.
It is also fun to control your robot via Blynk from your phone. You will have to upload some C++ code to the NodeMCU to make it work. Blynk is well documented and free.
You can also dismantle the robot and use the components to build other IOT “things”.