5 ms·
Show HN: Connecting Arduino and Android
- targist 5y agoDid a small project for connecting Arduino and Android, if you are more a video fun you can find a small explanation here https://www.youtube.com/watch?v=AGjHHh4m1q0 https://www.youtube.com/watch?v=AGjHHh4m1q0
- peterburkimsher 5y agoConsider posting it with the title "Show HN: Connecting..." to say that you made it! Then it will also show up in this page: https://news.ycombinator.com/show https://news.ycombinator.com/show
- targist 5y agothank you very much for the tip @peterburkimsher, will definitely do
- catchmeifyoucan 5y agoThis looks great! Had to do this once, if this could be extended to make web requests or send the output via a post request to a remote server somehow, it could be used for remote logging.
- targist 5y agoThank you very much @catchmeifyoucan for your support! Indeed there is a nodejs app for uploading programs already from a computer connected to Arduino via Serial. It is not supporting logs display yet as it just log the messages to console currently but we have created an issue for that and looks like it should be prioritized ;) issue link: https://github.com/targist/ardui/issues/14 https://github.com/targist/ardui/issues/14 the documentation for using the nodejs app: https://github.com/targist/ardui#web-interface https://github.com/targist/ardui#web-interface
- lxe 5y agoWhy not use Firmata (https://www.arduino.cc/en/reference/firmata https://www.arduino.cc/en/reference/firmata) protocol instead of protobuf? You can use the vanilla firmata firmware on your arduino.
- targist 5y agoLooks interesting. will definitely have a look. Protobuf was offering JS binding too which helped us to develop a nodejs app doing the same from a computer connected to Arduino via the Serial. Please see: https://github.com/targist/ardui#web-interface https://github.com/targist/ardui#web-interface
- lxe 5y agoJohnny-Five (http://johnny-five.io/api/ http://johnny-five.io/api/) uses Firmata -- There's a JS binding (https://github.com/firmata/firmata.js/ https://github.com/firmata/firmata.js/) I am starting to worry that this whole ecosystem is stagnating though...
- targist 5y agoFor me this interesting if i m interested in sending behavior to Arduino, but lets take the following scenario, sending the commands is too slow for your need and all you need is to remote control your Arduino, then in this case you can follow the same design, redefine new messages in Protobuf and a way of reacting to them in Arduino, apart from this Firmata seems much mature.
- tmaly 5y agoHave you tried MS MakeCode? They have visual programming blocks and target android.
- targist 5y agoSure will have a look. Thanks!
- opencl 5y agoNeat project. I wonder how hard this would be to adapt to an ESP8266/ESP32 target (or other micros with onboard radios) and sending the code wirelessly.
- targist 5y agoThanks! We were thinking of using BLE instead of Serial wire in upcoming versions. but your suggestion looks interesting too. there is only one part that needs adaptation which is send/receive bytes. So we will think about your suggestion. Thanks again!
- targist 5y agohello guys, since we were asked if we can make the same setup using a web interface instead of arduino we made a followup video to show how it can be done https://www.youtube.com/watch?v=hMjaNd2pjr4 https://www.youtube.com/watch?v=hMjaNd2pjr4 hope you enjoy it