![]() ![]() ![]() To find the correct layout of the pins you may use the following simplified pin layout diagram or use the complete but more complex version from the website (see sidebar). This value can be identified by the coloured bands on the resistor. This will lead to a current of around 7 mA which is safe for the Teensy and still sufficient to light the LED. As it is safer to use a somewhat larger resistor value, in this case we will use the 150 Ω resistor from the kit. This gives a value of 105 Ω (ohm) for R1. I The current through the circuit is equal to the maximum acceptable current (10mA due to the Teensy). U The voltage difference across the resistor is equal to the voltage provided by the Teensy (3.3 V) minus the voltage difference which is required across the LED (2.25 V for a red LED, see its datasheet). The value of this resistor can be determined by Ohm’s law. To prevent this from happening we need a resistor. The Teensy gets damaged when its pin maximum output current (10 mA) is exceeded. LEDs get damaged when their power rating is exceeded (25 mA, see datasheet). The cathode, or the minus side, is the flat side of the LED. The LED needs to be connected to the Teensy as shown in the schematic below. Within the interactive light an LED is used as the actuator. In electronics components are distinguished into different groups.Ĭomponents which can perform an action are called actuators. ![]() To do so, follow the instructions on either of the following links:Īfter this install Teensyduino by following the instruction on the following link It uses the same integrated development environment (IDE) as the Arduino but with an extra add-on called Teensyduino.īefore you can start you have to make sure you have the Arduino IDE software installed on your laptop. The Teensy is to a large extend compatible with Arduino programs but much more powerful compared to for example an Arduino Uno. It will cover most of the basic skills and help to get you started with electronics.ĭuring this tutorial you will be creating an interactive light responding to approaching objects. This tutorial has been especially created to accompany the starterskit containing a Teensy microcontroller. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |