Commit 5d81f2de authored by megillw's avatar megillw

getting input/output files ready

parent bc94ffa5
Pipeline #154109 passed with stages
in 35 seconds
......@@ -258,12 +258,14 @@ For reference, the take-home kit contained the following elements:
- Pushbutton switches
- LEDs (yellow & red)
- Voltage regulator
- Light sensor
- Liquid crystal display ([Lumex LCM-S01602DTR/M](https://www.digikey.de/product-detail/en/lumex-opto-components-inc/LCM-S01602DTR-M/67-1781-ND/469805?_ga=2.152281593.1387776866.1584885002-820044365.1584885002))
- Ultrasonic Distance Sensor ([Joy-It HC-SR04](https://cdn-reichelt.de/documents/datenblatt/A300/SEN-US01-DATASHEET.pdf))
- Miniature loudspeaker ([CUI Devices GC0351N](https://www.cuidevices.com/product/resource/gc0351n.pdf))
- Servo Motor ([Hobby King HKSCM9-6](https://hobbyking.com/en_us/hobbykingtm-hkscm9-6-singlechip-digital-micro-servo-1-6kg-0-07sec-10g.html))
- Servo Motor ([Tower Pro SG90](https://eckstein-shop.de/SG90-Mini-Servo-Micro-Gear-9g-Fuer-RC-Car-Boat-Airplane-Helicopter-Trex-450-CE?gclid=Cj0KCQjwmdzzBRC7ARIsANdqRRmgLy8OemoxfdXZV4MGufREogZRu2HHyVFDwGiBCDgiWBKfM-Eq-jcaAox5EALw_wcB))
- Servo wire color code according to [Pololu](https://www.pololu.com/product/1046/faqs): brown = ground, red = power, orange = signal
- Accelerometer MPU-6050
## Where I got to, two years ago
......
# 10. Input devices
Making the button work
A machine is nothing without sensors. This week's work is all about incorporating them into our designs. Since we're not yet back in the shop, I continued with the Arduino, trying different sensors and programming languages as I went.
In our little kits, there were a series of different input devices and sensors available:
- Pushbuttons
- Potentiometer
- Light Sensor
- Humidity Sensor
- Ultrasound Proximity Sensor
- Multi-Axis Accelerometer
// photo of the sensors
I'll go through them each in turn, and think of something interesting to do with the signals they generate.
## Pushbuttons
## Potentiometer
## Light Sensor
## Humidity Sensor
## Ultrasound Proximity Sensor
## Multi-Axis Accelerometer
......@@ -2,6 +2,8 @@
The coronavirus quarantine caused a lot of upheaval in the FabAcademy schedule this semester, so this week's activities got done a little out of the usual order, and many of them before they were covered in class.
The first couple of sections here are about just making the output devices work with the Arduino, and so are based on the example code available in the Arduino library. In the later sections, I'll use the servos and display screen in combination with some input devices to do something interesting.
## Arduino vs Servo Motor
There's a servo library and example in the Arduino examples library. All that's required is to wire up a servo to the appropriate pins, as follows:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment