frizzby / esp8266-rgb-led

DIY ESP8266 Wi-Fi iPhone controlled rgb led strip
GNU General Public License v2.0
31 stars 7 forks source link

Getting error when running milight.lua #2

Open rajbadri opened 8 years ago

rajbadri commented 8 years ago

i am getting this error when i run milight.lua

dofile("initit.lua")

192.168.1.236 255.255.255.0 192.168.1.1 PANIC: unprotected error in call to Lua API (milight.lua:6: malformed number near '0.5') PANIC: unprotected error in call to Lua API (attempt to call a string value)

frizzby commented 8 years ago

Most likely you flashed integer version of nodemcu firmware. You need float version to make this work. Give it a try.

rajbadri commented 8 years ago

Thanks started working perfectly. i am able to run it with the iPhone app. Can you please suggest a app for Android

Thanks Again

frizzby commented 8 years ago

I do not own any androids, so i can't verify, but this one should work: https://play.google.com/store/apps/details?id=com.lierda.wifi

rajbadri commented 8 years ago

Thanks need one more help i don't have esp-201 and am using nodemcu ver : 1 i am using the following pins

red = gpio 0 (D3 on nodemcu) green = gpio 15 (D1 on nodemcu) blue = gpio 5 (D8 on nodemcu)

i am not getting green colour on rgb strip. (blue and red is ok)

Thanks

frizzby commented 8 years ago

can't help with this.

Maybe gpio15 is not suitable for PWM. I had to figure out correct pins for my ESP-201 empirically because i didn't find any documentation on this.

rajbadri commented 8 years ago

is it possible to change the gpio pins in your sketch ?

frizzby commented 8 years ago

The first lines of milight.lua are:

    r_pin=1 
    g_pin=2
    b_pin=3

Pin1 for red channel, Pin2 is for green and Pin3 for blue. RGB.

Retroaktiv commented 8 years ago

hello frizzby! which Float version from nodemcu do you use? I have problems, and would exclude potential sources of error Thanks!

frizzby commented 8 years ago

@Retroaktiv hi. i use nodemcu_float_0.9.6-dev_20150406.bin it was quite a while ago.

Retroaktiv commented 8 years ago

Tanks ! works !

rachit94 commented 8 years ago

is it possible to use esp8266-01 + arduino uno instead of esp8266-201