![]() ![]() Implementation of the sensor with the Teensy 3.1 microcontroller. For full disclosure, I had pin A9 (or 23) attached to sensor 8 and A2 (or 16) was attached to sensor 1 The code Honestly, as shown in the video I just used the example code from the qtr-sensors-arduino library. So what I already have now is the programm code to read out the values of three MPU6050 sensores as a change of the angle in x-, y- and z-axis. Once you are up and running with the Teensy by referencing: and running some example programs, you should be ready to install and run the attached example sketch provided. Arduino Uno boards have Atmel microcontrollers on them. For the sensor readings, I fed those into teensy pins 16-23 which equates to analog pins A2-A9, either value will work. I want to plot my programming code from the arduino/teensy in matlab to see the real time data in a diagram. See: for more practical advice on whether this risk is relevant for you. Teensy 4.0 is the same size and shape as Teensy 3. Since I live in an area with high relative humidity (~70%), my risk of accidental electrostatic discharge to the chip is relatively low, so I chose to go without. Teensy 4.0 features an ARM Cortex-M7 processor at 600MHz, with a NXP iMXRT1062 chip, the fastest microcontroller available today. It is recommended that you also use 10k resistors inbetween your chip and sensor connections, especially if you live in a dry climate. I chose to connect my copper connections to an old ribbon cable that has EEG sensors at the other end for the sake of experimentation, but you can connect the copper wires from the pins on the board to whatever electrical thing you want to capacitively experiment with. ![]() I don't like the hassle of soldered and de-soldering connections until I have decided on a finished design, so I prefer to prototype by securing my pin connections with large gauge solid conductor copper wire and then secure the other side of the wire with the outer red sleeve as shown in the picture. See: for which touchRead pins are available to use for capacitive sensing. Using the attached sketch and photo as an example, I am reading Capacitive sense data from pins A1-A5 of the available 12 capacitive sense ports, plus the ground pin at the bottom of the board. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |