Forum.

 

Need help or have a question? Join the conversation in our community topics and share your ideas, tips, or challenges—we’d love to hear from you! Before posting, be sure to check our

 

?

Avisos
Vaciar todo

[Resuelto] WiFi usage

4 Respuestas
2 Usuarios
1 Reacciones
5,206 Visitas
(@tibors11)
Eminent Member
Registrado: hace 2 años
Respuestas: 11
Iniciador del debate  

Hi,

the website tells that amongst many features, Otto has WiFi-availability. However, I did not find any documentation about it.

How does it work? How can it be used in the web programming interface (Scratch)?

Thanks!



   
Camilo reaccionó
Citar
Camilo
(@cparrapa)
Developer Admin
Registrado: hace 3 años
Respuestas: 112
 

Good question @tibors11

Wifi is used primarily with the "IoT" category for blocks it can retrieve Time, weather, email, third party services like Thingspeak, or IFTTT, communicate with other Ottos with ESPNOW protocol, The best use of WiFi is with the HP-OTTO Emote Builder Kit  to "see the data" otherwise is just variables to interact with the robot.  

1.NTP is when you want Otto to get clock synchronization with the network. This one is better to use with the OLED, so that you can see the actual time, otherwise just print in the serial monitor.
 
2. Thinkspeak. it is a 3rd-party platform, which provides data analysis based on cloud-sensing.To use it is quite simple after some setup; create an account and a channel in https://thingspeak.com/ From there they will get the API, fill the Wi-Fi credentials in the attached example that is just a simple data collection of the ultrasonic sensor measurements,  but of course it can be modified for more advanced applications.
 
3. IFTTT - is for Automation with other cloud devices basically anything could communicate with Otto as long as is listed here Explore Integrations - IFTTT. This one has almost infinite application is there anyone in particular you want to try? take into account the FREE version of IFTTT is very limited since is a third-party service. Try creating an account first.
 
But all this applications can be quite complex to use, we will be creating new lessons to explain this in deep and I will post some quick examples here.
 
If any questions let me know.
 


   
ResponderCitar
(@tibors11)
Eminent Member
Registrado: hace 2 años
Respuestas: 11
Iniciador del debate  

I see, thank you! I hoped there are some pre-made libraries to use WiFi so Otto could be controlled the same way as via Bluetooth.

However, data gathering from external modules is useful, too. But it needs a lot of learning, I remember I closed the Arduino docs when I reached how to program WiFi. :)

Have a great day!



   
ResponderCitar
Camilo
(@cparrapa)
Developer Admin
Registrado: hace 3 años
Respuestas: 112
 

Hi @tibors11

We implemented Wi-Fi for programming or remote control at some point, but it was very troublesome to set up, with flashing, IP and MAC addresses and so on, unlike Bluetooth that is faster and intuitive.

It is possible to create a simple web server in Otto and then control the robot from it, but the interface is not as dynamic as the web app we currently have. It might be good for other applications we want to explore. https://randomnerdtutorials.com/micropython-wi-fi-manager-esp32-esp8266/

Another thing we are planning to use Wi-Fi is to communicate with other robots or cloud devices.

Ideas are welcome!



   
ResponderCitar
Scroll al inicio
Estarán disponibles tras el lanzamiento del producto.