![]() All of this is done wireless, using nrf24l01 radios. This allows me to send and receive information to and from the Arduinos using any device/software that supports MQTT, including mobile devices. This is one of the more advanced scenarios on how to use it.īasically what I am doing is using the internet connected Raspberry Pi as a gateway for all of my Arduino devices, which will run their own IP stack and communicate directly with the Raspberry Pi using the MQTT protocol. It supports quite a wide range of communication scenarios, with a mesh layer that allows wireless nodes to find communication paths through the network automatically when a given connection fails and uses other nodes to bridge the distance between points in the network. It works beautifully, and gives you at least 1000X more functionality than ANY Arduino-based development environment, with access to source control (git, or any other).I've developed a communication stack based on the OSI model for nRF24 radios over the past number of years, and it is fairly complete and fully functional. ![]() ![]() You also have full remote debugging capability. You can do ALL of your editing and debugging on the PC, with the actual build being performed remotely on the Pi. Install MS Visual Studio, and install the VS Linux build plug-in. If you want to do development on your PC, but build for the Pi, you can do that easily. Debian Linux on the Pi is a full multi-threaded OS, allowing you do anything you like with threads. Multi-threading - Arduino simply does not do it. SQL also takes mere minutes to install and configure. You mentioned a database - Not sure what "database" is available for Arduino, but on the Pi, you can use full SQL, along with PHP. Apache takes mere minutes to install and configure. Simply use Apache, and you have a fully-functional web server, and access to javascript, PHP, Perl, AJAX and countless other industry-standard web tools. Even if it did, you'll be limited in capabilities. Web server - First, I very much doubt any of the Arduino web server code would work. By limiting yourself to the Arduino world, you surrender a massive amount of capability, and will spend a huge amount of time trying to make things work Arduino-style when they will work much better using the native Linux infrastructure. In the long run, you will be FAR better off programming the Pi natively. (the pro-version offers free position-configuring) Some time ago I discovered ESP-Dash, which makes developing webbased Interfaces a breeze because all the HTML-stuff is done in the backround. So it still depends on what you want to do. Something like a Teensy 4.0/4.1 has quite a lot of calculation-power 32bit 600 MHz and a lot of RAM (1MB) but of course is not a full blown OS-based-Computer like a Raspi. Print ("Received Message: #",Msg,"# from",addr)ĮndOfHeader = Msg.find(HeaderDelimitChar) Udp_port = 4210 # specified port to connectĭata,addr = sock.recvfrom(1024) #receive data from client Udp_host = socket.gethostname() # Host IP Sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # For UDP The python-code for doing this is pretty short # very simple and short upd-receiver found here ![]() What I did do is using ESP8266s and ESP32s to send UDP-messages to a Raspi where the Raspi stores the received messages in textfiles. ![]() Of course a 2 minute cross-reading is not the same as having realised a real hardware-project with a Raspi Which - from a 2 minute very quick cross-read looked quite comfortable. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |