These are chat archives for SmingHub/Sming

13th
Nov 2015
Dmitry Kireev
@kireevco
Nov 13 2015 07:47
Did anyone try to control led strips ?
For analog doesn't seem to be possible for rgb type without external dac
alonewolfx2
@alonewolfx2
Nov 13 2015 07:58
@kireevco which one ?
ws2812 or normal rgb (12v)
i am testing ws2812 for a while
alon24
@alon24
Nov 13 2015 09:00
@alonewolfx2 I want to have 1 ws2812 led blink on my project, for information purposes with different colors, can this be done now, without interrupting current work being done by esp, like controlling gpios and others? is there a good example
Dmitry Kireev
@kireevco
Nov 13 2015 09:12
@alonewolfx2 well, I was wondering about both. regular Analog?
I willl probably need 3 DACs and 3 mosfets for this, right?
@alonewolfx2 any schematic for ws2812?
how do you wire it up?
Dmitry Kireev
@kireevco
Nov 13 2015 09:17
@alonewolfx2 also, which supplier/item would you recommend (aliexpress)?
zhivko
@zhivko
Nov 13 2015 12:06
is it possible to use ADC and send over wifi at same time?
If not at same time what is time difference while wifi becomes active after ADC measurements are not made anymore? -What is time gap?
robotiko
@robotiko
Nov 13 2015 12:07
@zhivko are you using embedded adc or external one?
or just invesigating
I plan to use internal one - BUT if that's not possible or reporting frequency back would be low - I would need to make custom board.
icodk
@icodk
Nov 13 2015 12:17
Can anybody point me to, or explain how can I configure my build (in sming on Windows)to target a 1M spi flash (on eps-12) instead of 512K on esp-01
I don't care about bootloaders or ota Just want maximum space for my prog and spiffs
robotiko
@robotiko
Nov 13 2015 12:18
@zhivko I recall there is a digital version of that sensor
zhivko
@zhivko
Nov 13 2015 12:22
aaaaa
@robotiko why have you told me before :) will try to find it...
robotiko
@robotiko
Nov 13 2015 12:23
however.. my experince with it.. is that is not very precise
zhivko
@zhivko
Nov 13 2015 12:25
what is precission ? is it around 0.1mm ?
robotiko
@robotiko
Nov 13 2015 12:26
far close near.. etc
alonewolfx2
@alonewolfx2
Nov 13 2015 12:28
@kireevco direct usage on pin 12. For rf analog one you need to use 3 mosfet right.
zhivko
@zhivko
Nov 13 2015 12:30
@robotiko :(
robotiko
@robotiko
Nov 13 2015 12:31
what
precision around 0.1? what is the precission maybe you know ?
robotiko
@robotiko
Nov 13 2015 12:32
@zhivko really nice project
Dmitry Kireev
@kireevco
Nov 13 2015 12:36
@alonewolfx2 any models that you like (digitalo ones?)?
alonewolfx2
@alonewolfx2
Nov 13 2015 13:09
@kireevco For rgb?
Dmitry Kireev
@kireevco
Nov 13 2015 13:10
@alonewolfx2 for ws2812
Dmitry Kireev
@kireevco
Nov 13 2015 13:40
@alonewolfx2 thank you. which length and # of lights do you have?
This message was deleted
alonewolfx2
@alonewolfx2
Nov 13 2015 14:17
1M 60 chip
Dmitry Kireev
@kireevco
Nov 13 2015 14:18
@alonewolfx2 how do you wire pin 12 to leds? 5v,gnd,gpio12?
alonewolfx2
@alonewolfx2
Nov 13 2015 14:19
@kireevco i tried many thing
5v power for ws2812 and 3.3v dataline seems unstable
but its working on 3.3v power and 3.3v dataline
also level shifter working fine
Dmitry Kireev
@kireevco
Nov 13 2015 14:20
so, shift gpio to 3.3v and use 3.3v power from esp board?
alonewolfx2
@alonewolfx2
Nov 13 2015 14:20
yes
Dmitry Kireev
@kireevco
Nov 13 2015 14:20
what is your power source? usb charger?
alonewolfx2
@alonewolfx2
Nov 13 2015 14:20
also 5v power for esp8266 and 5v for ws2812 woorking fine too :D
ac-dc 12v module (cheap one) and ams1117 3.3v with 470uf cap
Dmitry Kireev
@kireevco
Nov 13 2015 14:21
do you have a link?
for ac-dc
so, esp is not powering anything, just controlling. good
how does the addressation work?
if I have 60 leds, how do you address
I’m looking at the example… via Hex address?
how do you know which led has which address?
alonewolfx2
@alonewolfx2
Nov 13 2015 14:23
from local seller.
Dmitry Kireev
@kireevco
Nov 13 2015 14:24
well, let’s say im getting 1/60 IP67.
alonewolfx2
@alonewolfx2
Nov 13 2015 14:24
i am using just 8 led for night light
Dmitry Kireev
@kireevco
Nov 13 2015 14:24
what’s the min and whats the max address?
oh
alonewolfx2
@alonewolfx2
Nov 13 2015 14:24
with hard coded hex
Dmitry Kireev
@kireevco
Nov 13 2015 14:24
you just guessed?
alonewolfx2
@alonewolfx2
Nov 13 2015 14:24
but i am trying to port adafruit library
no
d
robotiko
@robotiko
Nov 13 2015 14:27
@kireevco the addressing is order based
Dmitry Kireev
@kireevco
Nov 13 2015 14:27
@robotiko how do I know the step?
robotiko
@robotiko
Nov 13 2015 14:27
the led send info from one to the other like in daisy chain
Dmitry Kireev
@kireevco
Nov 13 2015 14:27
8 is the step?
let’s say, #1 is 0x00
robotiko
@robotiko
Nov 13 2015 14:28
you send a command as lon as the number of leds you wan to control
8 leds you send a word like (12345678)
each word is the hec value for colour a single led
\x40\x00\x00\
somethig like that is a signle led command
Dmitry Kireev
@kireevco
Nov 13 2015 14:29
so, that’s rgb for one led
robotiko
@robotiko
Nov 13 2015 14:29
yep
add 8 times
Dmitry Kireev
@kireevco
Nov 13 2015 14:29
ah
robotiko
@robotiko
Nov 13 2015 14:29
and you have 8 commadns 8 leds
Dmitry Kireev
@kireevco
Nov 13 2015 14:29
for next 8
k
robotiko
@robotiko
Nov 13 2015 14:29
\x40\x00\x00\x00\x40\x00\x00\x00\x40\x40\x00\x00\x40\x00\x00\x40\x00\x00\x40\x00\x00\x40\x00\x00
Dmitry Kireev
@kireevco
Nov 13 2015 14:29
ok, so If I want to skip a led?
just repeat whatever was there before
robotiko
@robotiko
Nov 13 2015 14:30
they have no memory
you have to keep the values
Dmitry Kireev
@kireevco
Nov 13 2015 14:30
yeah...
robotiko
@robotiko
Nov 13 2015 14:30
and send the same agian
to tuen off a led
send 0 intensity
Dmitry Kireev
@kireevco
Nov 13 2015 14:30
sure. makes sense. How do I turn it of? or adjust other pr
ah
that’s what I was going to…
where is the intensity param?
alon24
@alon24
Nov 13 2015 14:32
can the rgb led ws2812 share the gpio with ds18b20 temp reader gpio?
Dmitry Kireev
@kireevco
Nov 13 2015 14:33
@robotiko how do I set anything other than rgb key?
robotiko
@robotiko
Nov 13 2015 14:33
@kireevco I send later .. I recall is part of teh hex value encoded somehow
Dmitry Kireev
@kireevco
Nov 13 2015 14:33
oh
robotiko
@robotiko
Nov 13 2015 14:33
dotn recall the details
Dmitry Kireev
@kireevco
Nov 13 2015 14:33
very interesting.
ah
robotiko
@robotiko
Nov 13 2015 14:33
so you can tune the each color channel
Dmitry Kireev
@kireevco
Nov 13 2015 14:33
I’m looking, and I think it’s the 4th param
robotiko
@robotiko
Nov 13 2015 14:34
but you might be right..
I double check later
I have one wired adn working righ tnow
Dmitry Kireev
@kireevco
Nov 13 2015 14:34
I still need to get strips
robotiko
@robotiko
Nov 13 2015 14:34
one of those 8 leds rings
Dmitry Kireev
@kireevco
Nov 13 2015 14:34
…and get home first
@robotiko do you like it?
robotiko
@robotiko
Nov 13 2015 14:34
@alon24 I guess .. yes
Dmitry Kireev
@kireevco
Nov 13 2015 14:34
how do you control it? do you have some interface for yourself?
robotiko
@robotiko
Nov 13 2015 14:35
if you write to that pin.. the sensor wont do anything
Dmitry Kireev
@kireevco
Nov 13 2015 14:35
@robotiko did you use any connectors?
I’m trying to get as much as needed from aliexpress
robotiko
@robotiko
Nov 13 2015 14:35
but you have to block the led strip form getting the sensor data .. or will screw the colors
I'm using a led ring.. it comes with solder pads to solder your cables there
Dmitry Kireev
@kireevco
Nov 13 2015 14:51
@alonewolfx2 are you trying to port NeoPixel library?
@alonewolfx2 what’s the approx power draw on each rgb led?
robotiko
@robotiko
Nov 13 2015 15:41
@kireevco yes.. I have 8 and 16 leds rings
each led is 20ma
alonewolfx2
@alonewolfx2
Nov 13 2015 17:06
@kireevco each led is almost 60 ma for full light
60 NeoPixels × 20 mA ÷ 1,000 = 1.2 Amps minimum
60 NeoPixels × 60 mA ÷ 1,000 = 3.6 Amps minimum
yes neopixel library from adafruit because of it has many good functions
alonewolfx2
@alonewolfx2
Nov 13 2015 17:12
btw you need to send 0x00 for led off
if you need full strip off you must to send all
robotiko
@robotiko
Nov 13 2015 17:14
yep
black color is no color
Dmitry Kireev
@kireevco
Nov 13 2015 17:15
I ordered 12v analog one, I’ll use their controller
:-)
alonewolfx2
@alonewolfx2
Nov 13 2015 17:20
:D
analog one means no many animations :D
i tried sming with uln2003 + analog led strip and it almost working
Dmitry Kireev
@kireevco
Nov 13 2015 17:22
yeah,well, I’m not sure what animations do I want… and leds are so much cheaper
it’s mainly for ambient light
alonewolfx2
@alonewolfx2
Nov 13 2015 17:23
its enough if you need ambient light
Dmitry Kireev
@kireevco
Nov 13 2015 17:23
(I also ordered a short 1/60
I’ll play around
alonewolfx2
@alonewolfx2
Nov 13 2015 17:25
but if you need something like this, you must to use something like ws2812