If you're a beginner looking for your first microcontroller platform, the Arduino will probably be easier to approach. Things like tiny flying machines or wearable gadgets. The code works for both the Pro Trinket 5V running at 16 MHz and the Pro Trinket 3V running at 12 MHz. It's better than an Arduino if you're short on space, weight or power consumption. Now plug them together and build just about any gadget you can imagine. Think about things like accelerometers, gyroscopes, proximity sensors, liquid crystal displays, motor controllers, servo motors. So what could it be used for? Get a bunch of sensors and actuators that communicate with SPI/I2C/PWM. System MacBook (Retina, 12-inch, 2017) MacOS 10.15.7 (Catalina), 12 Pro IDE Version 0.1.2 (0.1.2) Adafruit Trinket M0 I can get the IDE to properly compile my sketch AND transfer correctly to the T. A highlight would be hardware SPI and I2C support, which are communication protocols for small gadgets (the AVR chip in Arduino has I2C/SPI but you can't use it from Arduino code, you need to write C) and PWM (pulse width modulation) which is a pseudo-analog output signal used to control things like servos. The downsides are that there's less memory and less cpu perf, there are less I/O pins, but a lot of (practical, non-beginner) projects don't need that many pins. eeprom has its own overhead, so may not be worthwhile for 512 bytes, it is slower (which probably wont matter for this), and you have a limited number of writes. An Arduino-compatible board designed by Sparkfun, Ĭompared to an Arduino, this is smaller, consumes less power and has a "standard" layout and costs about 1/3rd of an "official" Arduino. You may need one sketch to load the data into eeprom, to run before loading your main sketch. The oldest one is over a year old and has been used in several different projects including one that ran continuously for 160+ hours. // Adafruit Trinket analog meter clock // Date and time functions using a DS1307 RTC connected via I2C and the Wire lib // // Version 2.0 February 2016 to use new Arduino 1.6. I can't say much about the long-term reliability of those boards (my guess is that if you buy enough of them you'll notice that on average it isn't that great compared to that of boards with officially sourced MCUs) but the ones I got for myself and acquaintances (different models, six total) work as specified for now. At their price point the latter can compete with ATtiny85 chips directly despite being noticeably more powerful and more convenient to use in many cases. My personal experience with boards roughly the size of the Trinket has been as follows: I have purchased a Pro Micro compatible with an ATmega32U4 chip and an on-board MicroUSB port from a Chinese seller on eBay for under $9 as well as two no-name Arduino Pro Mini variants with ATmega328 chips from two different eBay sellers for around $4 each, all fully working. That’s it, you’ve programmed your Pro Trinket board with blink sketch You will see your LED blinking every 3 seconds. I rather like the new board but since we're talking low-cost alternatives one thing to consider is buying Arduino-compatible boards directly from China. Connect the Pro Trinket board with your computer, select your Adafruit Pro Trinket version from boards menu and leave as it the port selection.
0 Comments
Leave a Reply. |