Circadian Lamp

by eamodaws in Circuits > Raspberry Pi

11 Views, 1 Favorites, 0 Comments

Circadian Lamp

image-1200-9c0f3b373b0ca59a29f62eca371ce8d5.jpeg

I will be creating a circadian lamp which will change colour depending on what time of day it is. The colours imitate what colour the sun would be outside and puts you in the right mood. All the artificial lights these days have taken us away from our natural body clock by keeping us awake but hopefully this circadian lamp can produce some natural light. You will be able to turn this on and off with a switch.

Supplies

Equipment:

  1. Raspberry pi pico.
  2. Neopixel stick 8 or any other RGB LED strip light that only uses 5 volts.
  3. Wires (black for ground and other colour for other wires.)
  4. circular wooden base
  5. on/off switch
  6. lamp shade cloth.

Tools:

  1. soldering iron
  2. players/wire cutters.
  3. saw
  4. drill

Create a Wiring Diagram

I used Circuit designer to create my wiring diagram but any website will do. This will be what you can look back on as a guide when you wire up your project.

Write Your Code

  1. you can use chat gpt

Add Code to Raspberry Pi Pico

  1. press the save button in the top left of thonny and then select 'save to pico.'
  2. save it to a file named 'main.py'. You will have to name the file yourself.
  3. For the code to run without a computer you need to add the code to the main.py folder on your pico in Thonny.
  4. this means that it will run the code when the pico gets turned on or plugged in to a power supply.

Wire It Up

  1. follow you wiring diagram for this step.
  2. cut all three wires to about 20cm with wire cutters.
  3. use a wire cutter to take half a centimetre of the rubber off the ends of each wire.
  4. using solder and a soldering iron, attach one end of a black wire to the 'GND' part of the neopixel.
  5. attach the other end to one of the ground pins on the pico. You can use the solder that's already on the pico pins.