Skip to content

Commit b24c796

Browse files
committed
add how it works section
1 parent 010af8b commit b24c796

File tree

21 files changed

+64
-8
lines changed

21 files changed

+64
-8
lines changed
Loading

content/micropython/03.micropython/modulinos/02.modulino-distance/modulino-distance.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Distance to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Distance Code Example
3636

@@ -47,3 +47,12 @@ while True:
4747
sleep_ms(50)
4848
```
4949

50+
## How it works
51+
52+
The Modulino Distance is a sensor that measures the time it takes for light to travel from the module to the object and back, using a tiny laser and a light sensor. The distance sensor is also known as a Time of Flight (ToF) sensor.
53+
54+
The sensor can be used for a variety of projects, including gesture triggers, obstacle detection robots and motion detection.
55+
56+
***Note: For extra shipping protection, some sensors come with a small yellow plastic cover on the Modulino Distance sensor. If you notice this plastic piece still in place, please remove it to ensure more accurate readings.***
57+
58+
![REPL](./assets/how-it-works.gif)
Loading
Loading

content/micropython/03.micropython/modulinos/03.modulino-pixels/modulino-pixels.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Pixels to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Pixels Code Example
3636

@@ -89,3 +89,9 @@ for j in range(0, 3):
8989
pixels.clear_all()
9090
pixels.show()
9191
```
92+
93+
## How it works
94+
95+
The Modulino Pixels is a series of addressable RGB LEDs. These can be controlled by setting the brightness or the color of each LED.
96+
97+
![LED Animation]()
Loading
Loading

content/micropython/03.micropython/modulinos/04.modulino-buzzer/modulino-buzzer.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Buzzer to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Buzzer Code Example
3636

@@ -91,4 +91,12 @@ siren_melody = generate_siren(440, 880, 4000, 200, 2)
9191

9292
for note, duration in siren_melody:
9393
buzzer.tone(note, duration, blocking=True)
94-
```
94+
```
95+
96+
## How it works
97+
98+
The Modulino Buzzer is a tiny speaker that can output sound waves.
99+
100+
The speaker is called a "piezo", which comes from piezoelectricity. When you apply voltage to the speaker with a specific frequency, you generate a specific sound. Changing the frequency will change the tone of the speaker.
101+
102+
![How it wors]()
Loading

content/micropython/03.micropython/modulinos/05.modulino-buttons/modulino-buttons.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We will also need the following software:
3131

3232
Before we start programming, we will need to connect our Modulino Buttons to our Arduino board. For this we can follow the circuit diagram below:
3333

34-
![Circuit Diagram]()
34+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3535

3636
## Modulino Buttons Code Example
3737

@@ -64,3 +64,10 @@ while True:
6464
led_c_status = buttons.is_pressed(2) # Turn LED C on if button C is pressed
6565
buttons.set_led_status(led_a_status, led_b_status, led_c_status)
6666
````
67+
## How it works
68+
69+
The Modulino Buttons is a three-button module, each button capable of having a HIGH or LOW state. Additionally, this Modulino has 3 yellow LEDs which can also be controlled independently.
70+
71+
The button is used in pretty much every electronic circuit, as it is the easiest way to switch between states! The most common example is a light switch, where a button press activates a light.
72+
73+
![REPL](./assets/how-it-works.gif)
Loading
Loading

content/micropython/03.micropython/modulinos/06.modulino-knob/modulino-knob.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Knob to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Knob Code Example
3636

@@ -55,3 +55,15 @@ while True:
5555

5656
sleep(0.1)
5757
````
58+
59+
## How it works
60+
61+
The Modulino Knob is a rotary encoder that increases, or decreases, a number based on which direction it is rotating.
62+
63+
When the knob moves into a new position, it sends a signal to the Arduino board with the new position.
64+
65+
Turning it right increases the number (for example from 1 to 2).
66+
Turning it left decreases the number (for example from 2 to 1)
67+
Clicking it will also register a button click (HIGH on click).
68+
69+
![REPL](./assets/how-it-works.gif)
Loading

content/micropython/03.micropython/modulinos/08.modulino-movement/modulino-movement.md renamed to content/micropython/03.micropython/modulinos/07.modulino-movement/modulino-movement.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Movement to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Movement Code Example
3636

@@ -48,3 +48,11 @@ while True:
4848
print("")
4949
sleep_ms(100)
5050
````
51+
52+
## How it works
53+
54+
The Modulino Movement can measure acceleration, which means it measures the rate of change of velocity of an object in terms of its linear acceleration along multiple axes.
55+
56+
The Modulino Movement can, in other words, detect when something moves, and how fast it moves. It is a sensitive sensor that can also measure vibration.
57+
58+
![How it works](./assets/how-it-works.gif)
Loading
Loading

content/micropython/03.micropython/modulinos/07.modulino-thermo/modulino-thermo.md renamed to content/micropython/03.micropython/modulinos/08.modulino-thermo/modulino-thermo.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We will also need the following software:
3030

3131
Before we start programming, we will need to connect our Modulino Thermo to our Arduino board. For this we can follow the circuit diagram below:
3232

33-
![Circuit Diagram]()
33+
![Circuit Diagram](./assets/CIRCUIT-BREAKOUT.png)
3434

3535
## Modulino Thermo Code Example
3636

@@ -53,3 +53,9 @@ while True:
5353

5454
sleep(2)
5555
````
56+
57+
## How it works
58+
59+
The Modulino Thermo can read both the temperature and humidity around you. This is a great component when you want to track the changes in indoor environments.
60+
61+
![How it works](./assets/how-it-works.gif)

0 commit comments

Comments
 (0)