chefterew.blogg.se

Adafruit trinket power supply
Adafruit trinket power supply













adafruit trinket power supply

#Adafruit trinket power supply install#

The easier way is to install the Adafruit IDE which includes everything you need although you will need the ensure that the driver is installed for the USBTinyISP AVR programmer as per the pic.

adafruit trinket power supply

While I eventually got it to work, it needs a little bit of tweaking to get there.

adafruit trinket power supply

To get this far, you need to be able to talk to the Trinket from your computer. I should probably t ake a step back at ths point. It offered 5V at that pin when the trinket was powered by USB. It had ~ 5V on it – and when I checked the pinouts for the trinket (which I should have done to start with!!!) I found that this was exactly what I was looking for. I got my multimeter and started to find the correct PIN for the USB power supply and then noticed the USB+ pin on the adafruit. So, in the short term I’ll assume that the circuit will be powered by USB and I was planning to tap the 5V for the PIR directly from the USB by soldering a cable somewhere around the jack socket. I bought a couple of the 3.3V ones as I thought they’d be easier to run from battery packs – but the first problem I found was that the PIR sensor needs 5V. Important to highlight I think…Īnyway, you can find more info on it here. Please note, those are not my fingernails. A tiny, reduced version of the Arduino boards. So, rather than pick up an Arduino board like the Uno, which seemed like overkill for anything I was gonna make, I went for the Adafruit Trinket. Usually I sit in the room until one of them goes to sleep – using that time to read tech stuff… so I had the idea to use a PIR motion sensor to detect if either of them get out of bed, and to sound an alarm (piezo buzzer), in the hope that this would discourage them getting out. Being boys, they like to fight, so keeping them in their beds to get them to sleep is a challenge. My first project was to be a sensor to detect when the kids get out of bed. (You can read more about the difference between each here) In many projects they can be used interchangeably but their differences mean that one is usually a better fit than the other. The Pi is a microprocessor, whereas Arduino and it’s derivatives are actually micro-controllers. However, there are fundamental differences. The vast majority of Pi projects seemed to be ports from Arduino or similar so it seemed that I had started to learn things backwards. After playing with the Raspberry Pi for the last few months, I decided to take a look at Arduino to see what all the fuss was about.















Adafruit trinket power supply