And ofc to put everything together with servos, engine, wings etc.Īt the end, I think it was possible to fly only with ESP8266 (some versions have more outputs), but that’s for some other story.
My ESP8266 works fine alone without serial, as well when it’s running software serial without wifi but when I try to combine both, it stops the wifi communication with computer. The solution is here:Īfter that, all I had to connect ATtiny to ESP8266 via serial port. blacktrooper2: Hit there, I know it’s been a while but I’m trying to do the same and having a problem with the software serial. assembler-with-cpp option does not existĪfter installing mentioned library, I got this error. SoftwareSerial was too big for ATtiny, so I had to google something new. By default it was using TinyDebugSerial library which always returns -1 when Serial.available() is called. As it turned out, it was not that simple to get one, and after looking what serial libraries are used, there was no support for the Rx, only for Tx. My ATtiny needed only Rx line on Serial, for receiving the commands. It involved some advanced levels of Arudino programming (something weird on the first sight) but it’s worth it. software programming, the clock frequency reaches 100 kHz at a maximum. Chapter 12 PWM Interface Description of PWM functions PWM. process and abandon serial output during booting. So as I said, there are two PWM outputs, and I wanted one more. Description of functions, DEMO solution, ESP8266 software instruction and STM32 software solution. If you have ATtiny 45/85 then I think this should work a job for you:
Then here is how to connect the ATtiny to the Arduino:Īnd after that, you’ll need some libraries, to explain your Arduino software how to program the ATtiny. I heard somewhere it is possible.įirst, you need to upload a sketch to your Arduino to act like the ISP: I didn’t have programmer for this ATtiny and I wanted to program it with my Arudino. I did a little research till late morning hours and it happened that I was right ? Programming the ATtiny25
I believed it should be able to do a job for me. And I didn’t allow that to discourage me. I lacked knowledge about that micro controller and I knew that.
I also needed some sort of communication port like serial port which was not discussed in the datasheet.
Most specifications I was able to find on the internet was saying that there are just two PWM outputs, and I needed one more of them. I wasn’t sure will it fit and on the first sight it didn’t.
Initially, the idea was to use the Arudino Pro Mini, but in the meantime, I remembered that somewhere in my boxes I have ATtiny25. So there are servos, engine, battery, receiver and the micro controller. I’m not saying that’s a good idea, but I decided to go like that.Īnyway, I wanted the airplane to be as most simple as possible. No sensors, no autopilot, just raw commands from the remote executing on the airplane.
10 GPIOs D0-D10, PWM functionality, IIC and SPI communication, 1-Wire and ADC A0 etc.Can be programmed with the simple and powerful Lua programming language or Arduino IDE.Arduino-like (software defined) hardware IO.The use of FCC & CE certified ESP-12 version of ESP8266 with PCB antenna makes NodeMCU one of the best platforms for IoT application development at the lowest cost. It speeds up your IOT application developing process.
The event-driven API for network applications faciliates developers writing code in Nodejs style. The advanced API for hardware IO uses interactive Lua script which is like Arduino code. Via the micro USB you can program NodeMCU. Each GPIO can be used as PWM, I2C, SPI and 1-Wire. The development board is based on the ESP8266 WiFi chip with 10 GPIO and 1 ADC input. NodeMCU is an open-source firmware and development board that helps you to prototype your IoT product with a few Lua script lines.