These are chat archives for esp8266/Arduino

21st
Jun 2018
den har
@denman0000_gitlab
Jun 21 2018 01:20
@moose4621 @ashthespy I found the problem that was confusing me .. turns out I was reading the wrong filename fromspiffs for my .js aaargh LOL go figure...So I have my string coming through in the payload and printf shows the line as I need and want it : value,value,value, etc. Now I just need to know how to save the payload data as a line in SPIFFS ... I currently can write or append to a file on spiffs but can't get the Variable type correct :-(
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:21
haha, hi @denman0000_gitlab
has anyone played around with small servos? why do they jitter so much when i try to drive them from the ESP?
den har
@denman0000_gitlab
Jun 21 2018 01:24
@skorokithakis Hi .. sorry man I can't help there .. but maybe too much current drain ? maybe not sustained current ?
@skorokithakis Just a thought
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:25
I don't think so, it just jitters while sitting there
thanks though
den har
@denman0000_gitlab
Jun 21 2018 01:26
maybe its noise ? Perhaps feedback ? try pop a low drop diode into feed for servo ?
maybe a snubber circuit needed ?
I have in the past found that as an issue when driving mechanical relays ( they have a coli too) inductive load
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:32
hmmm yes, i think it might be noise
i'll try mitigating that, thanks
den har
@denman0000_gitlab
Jun 21 2018 01:32
saw this which might be an issue
esp8266/Arduino#4296
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:34
that seems to be for a stepper
den har
@denman0000_gitlab
Jun 21 2018 01:34
Try check the noise with a scope or drive from 12V (or other) battery
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:34
I think I figured it out, because it's software PWM, the noise is crazy when you're connected to wiofi
wifi*
i'll try the ESP32, it might work better
den har
@denman0000_gitlab
Jun 21 2018 01:34
Sorry Stavros .. got my wires crossed haha
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:34
no problem man
den har
@denman0000_gitlab
Jun 21 2018 01:35
wont caps and/or inductor help with that
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:35
caps on the signal line?
or do you mean on the ESP power rail?
i think the timings are off because of the interrupts
den har
@denman0000_gitlab
Jun 21 2018 01:36
electrolytic on supply before and after regulator
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:36
i'll try that, definitely
den har
@denman0000_gitlab
Jun 21 2018 01:36
and one or more tantalum or ceramics after 3,3v feed
supply > electrolytic cap > regulator > electrolytic cap > cermaic/polyerster/tantalum (not sure which type) the little blue ones worked well often for me on NRF24L01+
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:38
i think the wemos alread has the ceramic one
den har
@denman0000_gitlab
Jun 21 2018 01:39
and if i was driving relays I would pop in a tranny (bc547 or simlar) and a diode (and or snubber ( snubber good if you're driving inductive load especially from MOC or similar)
even if wemos have there may not be enough filtering
doesnt hurt when testing to pop a few extra in and scope the signal
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:41
hm yeah
i don't have a scope though :/
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:42
oooh very nice, thank you
den har
@denman0000_gitlab
Jun 21 2018 01:43
just pop this string into google
snubber cirucit for inductive load servo
now would you like to get blown away ?
LOL look here
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:44
ahaha what in the hell
that's amazing
den har
@denman0000_gitlab
Jun 21 2018 01:46
I know dude .. Build one and share your project :-)
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:47
i should!
i made a site for people to share projects on: https://www.makerfol.io/
but nobody wanted to :/
den har
@denman0000_gitlab
Jun 21 2018 01:47
see that KEYCHAIN OSCILLOSCOPE ? heheh
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:47
yeah wow
den har
@denman0000_gitlab
Jun 21 2018 01:48
wellstart rounding up the peeps here .. we could always do GROUP PROJECTS too
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:52
that's nice, but that keychain dEEbugger is super sexy
den har
@denman0000_gitlab
Jun 21 2018 01:52
used to use sound card for checking
indeed awesome and very cute device that one
@skorokithakis you can even create one for your mobile
pop this into google >> phone oscilloscope
dude have done it for less than 3 USD ..
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:55
that looks like a fair bit of work though
den har
@denman0000_gitlab
Jun 21 2018 01:56
8 mins and 46 seconds
lol
Stavros Korokithakis
@skorokithakis
Jun 21 2018 01:58
okay that's awesome
have you worked with the esp32 at all?
den har
@denman0000_gitlab
Jun 21 2018 02:00
@skorokithakis No not yet ... been holding back until price drops and hopefully will be able to port code over when I finally get one
Stavros Korokithakis
@skorokithakis
Jun 21 2018 02:00
aren't they pretty cheap now?
den har
@denman0000_gitlab
Jun 21 2018 02:01
@skorokithakis dunno haven't actually even checked :-( ...
Stavros Korokithakis
@skorokithakis
Jun 21 2018 02:01
i think they're about $5
no analogWrite, though, so it must still be immature :/
den har
@denman0000_gitlab
Jun 21 2018 02:07
and bluetooth integrated .. cool
@skorokithakis Dude I gotta get to sleep hahah its 4am here .. chat tomorrow buddy .. sleep well ..5am in greece ..? Insomnia ?
Stavros Korokithakis
@skorokithakis
Jun 21 2018 02:08
nah man, going to bed now :P
goodnight!
den har
@denman0000_gitlab
Jun 21 2018 02:09
@skorokithakis bwahahaha .. go sleep !
Chris Dalby
@moose4621
Jun 21 2018 14:19
So I have a wemos D1 mini that I am using for remote water tank level sensing via the thingspeak IOT. I send the esp into deepsleep for 1 hour then wake, turn on a ping sensor and take a reading, measure the battery voltage and then connect to the network and send the readings to thingspeak. My issue is that after about two days it fails to go into deepsleep and sends the battery flat. I have a "deepsleep on fail to connect to wifi" routine in the sketch.
Chris Dalby
@moose4621
Jun 21 2018 14:25
Daleon L
@Allwaysawake
Jun 21 2018 14:28
@moose4621 the code looks solid the battery dying seems like a problem. I would attach a deep cycle cell battery with a solar plane onto it, this way you can always have power be replenish on your downtime/ deep-sleep periods
Chris Dalby
@moose4621
Jun 21 2018 14:30
@Allwaysawake Thanks for your reply. I probably should have added that it has a 800mah lipo and a solar panel attached.
@Allwaysawake When it is running I can see the battery hitting full charge by about midday everyday and then, crash with no more readings.
Daleon L
@Allwaysawake
Jun 21 2018 14:49
@moose4621 what’s the size of your solar panels...?
Chris Dalby
@moose4621
Jun 21 2018 14:49
Make that a 350mah lipo.
Um, 5watt 6v I think?
@Allwaysawake I also have the wemos battery shield attached with built in charger but I removed the leds which accounted for most of the power drain.
Chris Dalby
@moose4621
Jun 21 2018 15:00
@Allwaysawake Its a 110 x 60mm panel. 6v 1w.
@Allwaysawake I see the battery voltage hits 4.2v at midday and by early morning it is about 4.05 to 4.1v just before the sun comes up.
Develo
@devyte
Jun 21 2018 17:46
monitor available heap after each time the readings are reported out
there are known issues in core 2.4.1 about heap, and of course axtls can cause some trouble, so try latest git and, if you can, switch to bearssl, it's much more stable vs. axtls
den har
@denman0000_gitlab
Jun 21 2018 20:22
Hey all
Hi all
Chris Dalby
@moose4621
Jun 21 2018 20:26
@denman0000_gitlab Hi denman, how's things?
den har
@denman0000_gitlab
Jun 21 2018 20:29
@moose4621 Awesome thanks and you ?
whats news ?
Chris Dalby
@moose4621
Jun 21 2018 20:31
@denman0000_gitlab It's Friday. Yay. :smile: :
@denman0000_gitlab How are you getting on with your project?
den har
@denman0000_gitlab
Jun 21 2018 20:34
@moose4621 re msg @ 16.19 I would havppy to test that on a standalone esp-12f which I have
Chris Dalby
@moose4621
Jun 21 2018 20:35
@denman0000_gitlab Where are you getting the message numbers from? I cannot see any.
den har
@denman0000_gitlab
Jun 21 2018 20:36
@moose4621 I think I am on track now with project ... I need to figure out how to carve up payload array into the variables I need on receive (Sprintf, sscanf)
So I have a wemos D1 mini that I am using for remote water tank level sensing via the thingspeak IOT. I send the esp into deepsleep for 1 hour then wake, turn on a ping sensor and take a reading, measure the battery voltage and then connect to the network and send the readings to thingspeak. My issue is that after about two days it fails to go into deepsleep and sends the battery flat. I have a "deepsleep on fail to connect to wifi" routine in the sketch. this one
Yay re Friday indeed :-)
TGIF woop woop
T-minus ....
@moose4621 looking at time stamp on right hand side of each message ( I'm logged on using notebook and firefox
Chris Dalby
@moose4621
Jun 21 2018 20:38
@denman0000_gitlab You are welcome to play with the code as you see fit. :+1: I have only tried it on one D1 mini so it would be good to try it on something else.
den har
@denman0000_gitlab
Jun 21 2018 20:38
@moose4621 will need resistor divider values and ADC port number i'm guessing
did you see link I sent to Stravros earlier in convo here ( scroll up if you can ;-))
@moose4621 see here re battery monitoring .. problem is it's in LUA code ( I can't fathom)
Chris Dalby
@moose4621
Jun 21 2018 20:41
@denman0000_gitlab The Wemos D1 mini has a built in voltage divider which I added to but the voltage range is 4.2 - 0. There is only one analog pin on the esp12 isn't there?
den har
@denman0000_gitlab
Jun 21 2018 20:41
https://www.youtube.com/watch?v=okP4a6NrhlQ this was something I sent Stavros in the early hours :-)
Chris Dalby
@moose4621
Jun 21 2018 20:42
@denman0000_gitlab Awesome. I scrolled back through yesterday and saw that.
den har
@denman0000_gitlab
Jun 21 2018 20:43
@moose4621 yes re ADC pin :-) One is fine I think .. will have to come up with an ingenious way to make the probe pin hop between batteries
Maybe transistor gates ...hmmmm
multiplex one ADC pin
Chris Dalby
@moose4621
Jun 21 2018 20:44
@denman0000_gitlab This is my contribution to the oscilloscope range.
https://www.thingiverse.com/thing:2211231
@denman0000_gitlab Why swap between batteries? Total voltage would be fine.
den har
@denman0000_gitlab
Jun 21 2018 20:46
@moose4621 Thats a really cool SCOPE :-) well done
have you tried it with the app mentioned in the video
might be 100% compatible out of the box ;-)
May I order one :-)
did you get any orders ?
Chris Dalby
@moose4621
Jun 21 2018 20:47
@denman0000_gitlab No I haven't. I should though.
den har
@denman0000_gitlab
Jun 21 2018 20:48
or I can just pay you as thought I'm ordering one to make it official and will etch and askk for advice
Well get busy testing already :-)
Chris Dalby
@moose4621
Jun 21 2018 20:48
@denman0000_gitlab Do you have a 3d printer?
den har
@denman0000_gitlab
Jun 21 2018 20:48
I think Stavros would be one of your first clients
@moose4621 No sadly not
I saw your box for that look 3D-printer-ish .. am I right ?
Chris Dalby
@moose4621
Jun 21 2018 20:49
@denman0000_gitlab I have not attempted to sell any. Thingyverse is a file sharing site so others can make your project.
@denman0000_gitlab Yes, 3d printed. All the files are up there.
den har
@denman0000_gitlab
Jun 21 2018 20:51
@moose4621 havent ever ventured down the 3D printer avenue as yet .. Time , time , time ..sigh
Dig the Sine wave concept :-)
that little scope must be great for small signal stuff
Chris Dalby
@moose4621
Jun 21 2018 20:52
@denman0000_gitlab I cannot justify life without one now. An absolute necessity.
den har
@denman0000_gitlab
Jun 21 2018 20:52
like noise on DC
Chris Dalby
@moose4621
Jun 21 2018 20:52
Ha ha, yeah. A geeks dream wave.
den har
@denman0000_gitlab
Jun 21 2018 20:52
@moose4621 Wow ..that good ? Gone of they days of building boards to enclosure size hey ? :-)
Haha yes and apparently maybe a grrek too (Stavros)
@moose4621 Did you build your own 3d printer ?
Chris Dalby
@moose4621
Jun 21 2018 20:54
@denman0000_gitlab Check out some of my other stuff on there.
https://www.thingiverse.com/moose4621/designs
@denman0000_gitlab My first was a chinese kit that was completely in pieces. The second one I made from scratch based on the first.
I run both printers a lot!
den har
@denman0000_gitlab
Jun 21 2018 20:59
@moose4621 WOOOOOOOOOOOW thats awesome
Chris Dalby
@moose4621
Jun 21 2018 20:59
@denman0000_gitlab Is that message number based on your local time stamp by any chance?
den har
@denman0000_gitlab
Jun 21 2018 20:59
@moose4621 re message and timestamp ...GUILTY AS CHARGED !!
:-)
@moose4621 that is a very interesting page .. thanks for sharing .. Interesting about the cow RFID tag .. as it happens I am presenting tomorrow on this https://www.youtube.com/watch?v=LrvNC2glTQg
heres another (shorter in case you haven't the time) https://www.youtube.com/watch?v=MA2ZaM3Oyas
den har
@denman0000_gitlab
Jun 21 2018 21:06
@moose4621 now a quick question re my code .. First of all thanks for all the help, tips and chats so far .. been awesome
Chris Dalby
@moose4621
Jun 21 2018 21:07
@denman0000_gitlab That's awesome. What is your involvement?
den har
@denman0000_gitlab
Jun 21 2018 21:07
@moose4621 this is the payload message I build-up and using content.send on TX side and receive on RX side :
get Text: *test,home,2018-06-12 12:00,1528797600,2018-06-14 12:00,1528970400,Normal,0001,001
@moose4621 I want to pop that in VAR's starting after the * eg.
char devname, char location, byte month, byte day, byte hour,byte second ..etc
if you have a quick way I'd appreciate it .. I was thinking SPRINTF and SSCANF
@moose4621 I'm a trainer .. main topic virtualization ( 11 years specializing in virtualization (vmware) , year 18 computer training)
Chris Dalby
@moose4621
Jun 21 2018 21:15
@denman0000_gitlab For later reference.
Water tank level sensor
den har
@denman0000_gitlab
Jun 21 2018 21:16
@moose4621 Awesome re water tank level sensor .. you should add a ph tester to it too :-) UPS for hydroponics then ;-)
Chris Dalby
@moose4621
Jun 21 2018 21:16
@moose4621 I want to pop that in VAR's starting after the * eg.
char devname, char location, byte month, byte day, byte hour,byte second ..etc
if you have a quick way I'd appreciate it .. I was thinking SPRINTF and SSCANF
I am looking at this now.
@denman0000_gitlab I have a Aquaponics farm if that counts.
den har
@denman0000_gitlab
Jun 21 2018 21:17
@moose4621 great watchband :0
Chris Dalby
@moose4621
Jun 21 2018 21:18
@denman0000_gitlab Is it sent in an array?
den har
@denman0000_gitlab
Jun 21 2018 21:18
@moose4621 and that land curiser center console .. wow and the other stuff too .. sitting here gawking ! well done man
Chris Dalby
@moose4621
Jun 21 2018 21:19
@denman0000_gitlab All developed out of necessity.
den har
@denman0000_gitlab
Jun 21 2018 21:19
@moose4621 Negative re array ... In arduino and NRF and 433MHZ days it was sent as array
Chris Dalby
@moose4621
Jun 21 2018 21:19
@denman0000_gitlab What format?
den har
@denman0000_gitlab
Jun 21 2018 21:20
I just collect it all on webpage as a javascript VAR now and then content send
well I'm guessing its all TEXT on webpage side
its all on the esp
den har
@denman0000_gitlab
Jun 21 2018 21:43
@moose4621 PS .. also on a 5,8 GHZ link .. 4,8 KMS ubiquity M5 bullets and 23Gig dishes either side