![]() I measured 3.1 V output on mine when the output goes HIGH and it works great with the EZ-Key module. Actual serial data probably won't produce a reliable reading so temporarily alter your sketch to just take the 5V Pro Trinket pin HIGH. If you have a meter, perhaps before connecting to your module input first double check your circuit at the juncture of the resistors. NECESSARY MATERIALS Adafruit Pro Trinket - 3V 12MHz 5V geared. if it were pin 8: pinMode(8,OUTPUT) digitalWrite(8, LOW) Ĭonnect this 5V output pin to one end of a 1.8K resistor (the "R1").Ĭonnect the other end of that resistor to both: your 3V module's input pin AND to a 3.3K resistor (the "R2") to ground. Pro Trinket - 3V 12MHz card is used in the project is difficult to find this card in the. In setup(), set the 5V Pro Trinket digital out pin to be normally LOW when it's not doing anything in the sketch, e.g. Use 3V Trinket to interface with sensors and devices that need 3V logic, or when you want to power it off of a LiPo battery. Use this 5V Trinket for sensors and components that can use or require 5V logic. ![]() ![]() ![]() Both work the same, but have different operating logic voltages. In my case it's not serial data but give it a try.Ĭlassic voltage divider equation: V out = V in * R1 / (R1 + R2) The Adafruit Trinket comes in 2 variations, 5V and 3V logic. I solved it easily for the price of a couple 1/8 watt resistors by including a simple voltage divider in the circuit as a "level shifter" and it works like a charm. I also had a 5V Pro Trinket on hand and needed to connect one of its 5V output pins to the 3V pairing pin on an Adafruit's EZ-Key HID.
0 Comments
Leave a Reply. |