Menu

"Saturn" mood light.

mkstevo
2020-07-11
2020-07-12
  • mkstevo

    mkstevo - 2020-07-11

    A simple mood light. Does nothing more than cycle through colours at random. I thought it looked effective though.

    I had some smaller "NeoPixel" WS2812 rings left that I didn't use for my recent clock project and wondered what I could do with them. This is the result.

    Code attached. There is little to the circuit. It is a PIC12F1840 and a 470R resistor in series with the data line to the NeoPixel rings. That's all. At the moment the circuit is on breadboard. Once I've figured out a base to use for this, I may make a more permanent PCB for it, using either VeroBoard or an actual PCB.

    A picture may speak a thousand words, but a video must speak 10,000. Video on YouTube: https://www.youtube.com/watch?v=LbpWKwFgQE0

     
  • stan cartwright

    stan cartwright - 2020-07-12

    Nice. Cool when you make something, I think. I don't finish many projects myself.
    here is a project I am doing.
    a variable strobe from 49 to 52Hz??
    a water pump..on it's way £6.04 but I got one but can't find it :(
    here's the idea https://www.youtube.com/watch?v=qFXIhrDc6Rw
    The strobe would be bright white leds and a fet to power them?
    I haven't tried this code but it's a thought as to flash the leds at near the 50Hz pump...
    if the pump pulses water at 50Hz. It is supposed to be variable using a 10K pot.
    pulseout leds,1ms would need experimenting with.
    I will be back when I got the pump and leds.
    I tried the code and sorted errors and it seems to work.

    #chip mega328p,16
    #option Explicit
    #define leds portd.7
    #define potentiom portc.0
    dir potentiom in
    dir leds out
    dim potval as byte
    do
      potval=readad (potentiom)
      wait 18 ms
      wait potval 10us
      pulseout leds,1 ms
    loop
    

    Check out youtube for interesting ideas that could be done with gcb.

     

    Last edit: stan cartwright 2020-07-13

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.