PiEasy - porting ESPEasy to Raspberry Pi (Zero)
Posted: 18 Dec 2016, 16:17
Hi @all,
some days ago I found this awesome book from Neil Kolban:
https://leanpub.com/pi
I was really impressed about the huge amount of information he gave to us. For everyone who is interessted in the Pi this is a must to read
And at some point I stumbled about a project introduced by me-no-dev which is called "RasPiArduino":
https://github.com/me-no-dev/RasPiArduino
I get interested in that stuff and realized that you get a whole framework to program a Raspberry Pi from the Arduino IDE.
My first thought was ... "Why should I use the Arduino IDE to write C(++) code for the Pi ". But after a while the fog cleared and I started testing
The first test was to compile a blinky program. Works
The second test was a PCF8591 AD converter .. And after some trouble with sending the correct bytes to the device, it works, too
Next test was to check if we can access files on the filesystem (keep in mind ... from a Arduino sketch) ... works
Last but not least there was a network check ... works
Then I asked myself ... What will happen if I try to compile ESPEsay And well there where a hugh amount of errors.
But most of them could be fixed or bypassed. And after about 10 hours of coding it was done. ESPEasy is running on a Raspberry Pi Zero.
Now you may ask ... WHY the hell are you doing this
First of all ... It´s fun and I learned a lot new things.
And I think there are some other benefits ...
* The Pi Zero costs about 5$ ... It´s a little bit bigger than a NodeMCU ESP ... But has a lot more power.
* You have a full accessible Linux system as base ... No bare metal like on the ESP8266
* You have native LAN / WLAN support
* There is a lot of space on the SD card for data handling / storage. And you can even use your network and access a NAS for example ...
* The PI has more GPIO´s than the ESP8266 (ok this meight change with the upcomping ESP32)
* Simple more processing Power
* You can run ESPEasy as a simple application on any running Raspian System
* You can Debug the Code
* as more as I`m thinking about I got more and more pros for this config
Ok that´s all for now. If you are interested in more details I can make a video with the compilation process and how it runs all together ...
And it would be possible to share my code on Github.
Would be nice to get some feedback on this stuff. And have a nice christmas and a happy new year.
Dominik
some days ago I found this awesome book from Neil Kolban:
https://leanpub.com/pi
I was really impressed about the huge amount of information he gave to us. For everyone who is interessted in the Pi this is a must to read
And at some point I stumbled about a project introduced by me-no-dev which is called "RasPiArduino":
https://github.com/me-no-dev/RasPiArduino
I get interested in that stuff and realized that you get a whole framework to program a Raspberry Pi from the Arduino IDE.
My first thought was ... "Why should I use the Arduino IDE to write C(++) code for the Pi ". But after a while the fog cleared and I started testing
The first test was to compile a blinky program. Works
The second test was a PCF8591 AD converter .. And after some trouble with sending the correct bytes to the device, it works, too
Next test was to check if we can access files on the filesystem (keep in mind ... from a Arduino sketch) ... works
Last but not least there was a network check ... works
Then I asked myself ... What will happen if I try to compile ESPEsay And well there where a hugh amount of errors.
But most of them could be fixed or bypassed. And after about 10 hours of coding it was done. ESPEasy is running on a Raspberry Pi Zero.
Now you may ask ... WHY the hell are you doing this
First of all ... It´s fun and I learned a lot new things.
And I think there are some other benefits ...
* The Pi Zero costs about 5$ ... It´s a little bit bigger than a NodeMCU ESP ... But has a lot more power.
* You have a full accessible Linux system as base ... No bare metal like on the ESP8266
* You have native LAN / WLAN support
* There is a lot of space on the SD card for data handling / storage. And you can even use your network and access a NAS for example ...
* The PI has more GPIO´s than the ESP8266 (ok this meight change with the upcomping ESP32)
* Simple more processing Power
* You can run ESPEasy as a simple application on any running Raspian System
* You can Debug the Code
* as more as I`m thinking about I got more and more pros for this config
Ok that´s all for now. If you are interested in more details I can make a video with the compilation process and how it runs all together ...
And it would be possible to share my code on Github.
Would be nice to get some feedback on this stuff. And have a nice christmas and a happy new year.
Dominik