Skip to content

Commit ff1b309

Browse files
committed
notes about updating Tessel 2
Signed-off-by: Rick Waldron <[email protected]>
1 parent d237065 commit ff1b309

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Tutorials/Pulse_Width_Modulation.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Pulse-width Modulation (PWM)
22

3+
34
**PWM pins** are pulse-width modulated pins. Essentially, PWM is a digital signal that spends between 0% and 100% of its time pulled high/on (this is its "duty cycle"). You can set the PWM pins to any value between 0 (0%) and 1 (100%) to approximate an analog signal. PWM is often used to control servo speeds or LED brightness.
45

56
![PWM Duty Cycle Diagram](https://s3.amazonaws.com/technicalmachine-assets/tutorials/hardware-api/pwm-cycle-diagram.png)
@@ -8,6 +9,8 @@ In the following example, the Tessel will change the color of an RGB LED by chan
89

910
![PWM RGB LED Circuit](https://s3.amazonaws.com/technicalmachine-assets/tutorials/hardware-api/pwm-rgb-circuit.png)
1011

12+
13+
1114
```js
1215
const tessel = require('tessel');
1316

@@ -52,3 +55,21 @@ Note: the `pwmFrequency` function *must* be called before `pwmDutyCycle`. Re-set
5255
`pwmFrequency` will disable PWM output until `pwmDutyCycle` is called again.
5356

5457
[More information on pulse-width modulation.](https://learn.sparkfun.com/tutorials/pulse-width-modulation)
58+
59+
--------------------------------------------------------------
60+
61+
If you're Tessel 2 is up-to-date, it will be be running Node.js 6.10.3 or newer. You can check that by running `t2 version` and comparing the output to the following:
62+
63+
```
64+
$ t2 version
65+
INFO Looking for your Tessel...
66+
INFO Connected to maria.
67+
INFO Tessel Environment Versions:
68+
INFO t2-cli: 0.1.5
69+
INFO t2-firmware: 0.1.0
70+
INFO Node.js: 6.10.3
71+
```
72+
73+
If your output doesn't match, you should run `t2 update` to get the latest OS and firmware. Once that's done, you're ready to run the program in this tutorial.
74+
75+

0 commit comments

Comments
 (0)