Back to Parent

Outcome


Goal 

- To creator a circuit that uses a photoresistor to collect data and display it, with a button to control input. 

- To add potentiometer and button to the circuit. The potentiometer will control the led brightness and the button will switch it on and off. 

Approach

Step by Step process on the DioT Labs site for Practice Exercise II

20201113 000219.thumb
Show Advanced Options
20201113 000238.thumb
Show Advanced Options
20201113 000246.thumb
Show Advanced Options

Code

Setting up the sketch and connecting it to the Particle Cloud

Show Advanced Options
Show Advanced Options

Adding potentiometer to control the intensity of led and button to switch the circuit on and off .

When the potentiometer reading is high

20201113 020426.thumb
Show Advanced Options
Show Advanced Options

When potentiometer reading is low

20201113 020407.thumb
Show Advanced Options
Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.