Loading
Surrbradl08

WiFi Controlled Desk Lamp

by Surrbradl08 Jun 16, 2019
Download All Files

Thing Apps Enabled

Please Login to Comment

Hi!

Because of getting a not-so-good-experience with the analog sensor type I tried to switch to digital but then I got a massive issue when changing the settings to

define SOUND_REACTIVE // Uncomment to enable the Sound reactive mode

define SOUND_SENSOR_PIN D0 // An Analog sensor must be connected to an analog pin

define SENSOR_TYPE 0 // 0: Digital Sensor, 1: Analog Sensor

--->

invalid operands of types 'CRGB [80]' and 'double' to binary 'operator+'

/home/itl/arduino/esp8266-fastled-desk-light/esp8266-fastled-desk-light.ino: In function 'void soundReactive()':
esp8266-fastled-desk-light:1504:24: error: invalid operands of types 'CRGB [80]' and 'double' to binary 'operator+'
fadeToBlackBy(leds + level, LEDS_PER_LINE - level, decay);

Any clue how to fix this?
Many thx in advance!

Weird, your version of the arduino compiler might require a typecast, just replace the line:
fadeToBlackBy(leds + level, LEDS_PER_LINE - level, decay);
with this:
fadeToBlackBy(leds + (int)level, LEDS_PER_LINE - level, decay);

1.8.8 and works perfectly with your modification.

TYVM for that, we all love that lamp! (:
Also made a little RMX to prevent rattling in case of breezing.

Nice! I'm glad I could help.

BTW: Am Namen hätt' ich's eigentlich schon sehen sollen, aber ur net gleich checkt, a Landsmann! (: (: (:

Do you think i need the logic level shifter??
When i test with adafruit neopixel the tower works fine.
But when i try to run your program with fastled, it will not turn on any leds.

No, it's just used when the LEDs start to glitch out (flicker, turn on in the wrong color, etc) you can leave it out. Make sure you have the libraries installed that are mentioned in the video tutorial, some combinations of old versions don't work.

hmm.
i get this, and i have all the versions from the video.

In file included from C:\Users\JesperLau\Desktop\Ledlampe\esp8266-fastled-desk-light\esp8266-fastled-desk-light.ino:19:0:

C:\Users\JesperLau\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.002.006

pragma message "FastLED version 3.002.006"

                 ^

In file included from C:\Users\JesperLau\Documents\Arduino\libraries\FastLED/FastLED.h:65:0,

             from C:\Users\JesperLau\Desktop\Ledlampe\esp8266-fastled-desk-light\esp8266-fastled-desk-light.ino:19:

C:\Users\JesperLau\Documents\Arduino\libraries\FastLED/fastspi.h:110:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output

pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"

The SPI error does not matter, the output looks fine for me. It does upload process should complete sucessfully.

Have you tried one of the FastLED example sketches like DemoReel100?

IT is something with the pin mapping.

I got it to Work now.

I had to.

define FASTLED_ESP8266_RAW_PIN_ORDER

Before you include FastLED.h

Comments deleted.

I have also the sound detector and level shifter and the led direction is ok

I have followed the instructions of the video
Changing the desk github lamp file

This error is also caused if the wiring direction of the LED-Strip is wrong. Make sure the arrow of the strip points away from the esp8266.
If it's correct try disconnecting all soldered wires on the Wemos D1 Mini.

The settings look fine. Did you install the CH340/341 driver? Please send me a screenshot of the Com ports listed in the windows device manager.

Hi, why when i am uploading it gives me error espcomm_upload_mem failed? Thanks

Hi, please send a picture of the settings in the tools menu of the arduino IDE.

Make sure that you have selected the correct COM Port and the correct board.

That's a very nice design. Printing it now and have ordered the parts.

100% infill I take it is for the shroud only, not the other parts?

Exactly, the other parts can be printed with any infill.

Hi.

What a great project! Please could you show a photo/diagram of how you wired the logic-level shifter. Do you need the 3.3v from the Wemos for it?

Thanks.

Andy

Hi, unfortunatly I've forgot to add the wiring with the logic level shifter to the description. The wiring diagram can be found in my Github Repository.

Perfect! Thanks very much.

ok, Thanks is a very beautiful lamp

hello, how many meters of led strip i must buy?

Hi, 1.4 Meters are required for this project