*** chips that support the hardware serial, just *** platforms that support hardware based serial. *** name Serial so that code can be used on other *** Define the software based serial port. *** and D2 (pin 7) if you plan to use I2C. Next, create a SoftwareSerial object specifying the RX pin (pin to receive on) and the TX pin (pin to send on) when creating the instance. Start by ensuring the include statement is specified near the top of your sketch. The Software Serial library is straightforward to use. To program the ATtiny85 you will need a programmer such as the SparkFun Tiny AVR Programmer. NOTE: This cable is not used to program the AVR. The code in this article uses an ATtiny85 with an FTDI Serial TTL-232 USB Cable to send or receive information.Ī USB Serial TTL Cable can also be used since the CTR and RTS pins are not needed. Some ATtiny chips do not have direct support for hardware based serial and therefore the Serial object is unavailable in your code, however, it is easy to add a SoftwareSerial object and view output in the Arduino IDE. The Atmel tinyAVR MCU's are great little chips for projects but can prove difficult to debug.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |