Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5b8172

Browse files
committed
Fixed typo. Updated pins to use correct PWM pin and to not use digital pin 0 since it clashes with Serial communications.
1 parent 9e6ff7a commit c5b8172

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Actuators/Luminosity/Luminosity.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Steps:
88
1. In the Cayenne Dashboard add a new Custom Widget, and select Slider.
99
2. Select a virtual pin number.
1010
3. Set min value to 0 and max value of 1.
11-
4. Set SERVO_VIRTUAL_PIN to the pin number you selected.
11+
4. Set LED_VIRTUAL_PIN to the pin number you selected.
1212
5. Connect the LED's legs to GND, and to a PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
1313
Use a 1k resistor if possible.
1414
Schematic:

Actuators/MotorSwitch/MotorSwitch.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Steps:
1111
1. In the Cayenne Dashboard add a Button using Custom Widget.
1212
2. Select a virtual pin number.
1313
3. Set VIRTUAL_PIN to the pin number you selected.
14-
4. Set up your motor schematic and attach it to a PWM pin.
14+
4. Set up your motor schematic and attach it to a PWM pin (3, 5, 6, 9, 10, and 11 on most Arduino boards).
1515
5. Set the motorPin variable to the PWM pin number you selected.
1616
6. Set the token variable to match the Arduino token from the Dashboard.
1717
7. Compile and upload this sketch.
@@ -30,7 +30,7 @@ We use the virtual pin to receive data from the dashboard to enable and disable
3030
char token[] = "AuthenticationToken";
3131

3232
// motor pin
33-
int motorPin = 4;
33+
int motorPin = 3;
3434

3535
void setup()
3636
{

Sensors/DigitalMotionSensor/DigitalMotionSensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ char token[] = "AuthenticationToken";
2929
#define VIRTUAL_PIN V1
3030

3131
// Digital pin the motion sensor is connected to.
32-
const int motionSensorPin = 0;
32+
const int motionSensorPin = 4;
3333

3434
void setup()
3535
{

0 commit comments

Comments
 (0)