Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
den har
@denman0000_gitlab
feeling quite bamboozled
den har
@denman0000_gitlab
@devyte thank you kindly for the advice
Develo
@devyte
NP, and research more. That's the nature of developing in such systems: you need to investigate a whole lot, and figure out how to put all the pieces together.
BTW, I strongly suggest keeping your SPIFFS files small: small html, small js files, small css, etc. where small means few KB. I do NOT recommend implementing one huge html with embedded html/js/css, and certainly not html/js/css embedded in your C/C++ app code
den har
@denman0000_gitlab
@devyte ... plan is to keep files tiny and minified
i think even using the json library might be excess bloat as i was previously on the arduino using in memory only as structs and arrays
would actually prefer to just keep it that way but need the spiffs/SD part to store the events data and state
after a power failure data must be read back into the relevant array(s)
Chris Dalby
@moose4621
@denman0000_gitlab Sorry but I fell asleep again! Big days at work are too much for this old dog apparently.
@denman0000_gitlab You can have a local json library stored on spiffs or embedded. It doesn't have to be remotely accessed.
den har
@denman0000_gitlab
@moose4621 ...Thank you soo much and ditto .. also happy to help you
@moose4621 ..you need sleep my friend .. make sure you get it
@moose4621 will catch up when you're well rested .. :)_
Chris Dalby
@moose4621
@denman0000_gitlab Reading the arduinojson library, looks to me like just what you need.
Ash
@ashthespy
@moose4621 -- did you crack the array?, @denman0000_gitlab evening!
Chris Dalby
@moose4621
@denman0000_gitlab Ha ha thanks, early morning hereand is me most productive in the 'puter.
@ashthespy Yes thanks Ash. I have a working version. But.... I was wondering why I now see what appears to be 4 arrays in the console. Or is it one array being read 4 ways?
Ash
@ashthespy
depends on how you are dumping it out in the console!
Chris Dalby
@moose4621
@ashthespy connection.onmessage = function (e) { console.log('Server: ', e.data);
Ash
@ashthespy
What happened to the typed arrays? ;-)
Chris Dalby
@moose4621
@ashthespy
if(event.data instanceof ArrayBuffer ){ var buffer = new Uint8Array(event.data);
@ashthespy @denman0000_gitlab Off to work again. :-(
Ash
@ashthespy
print out buffer and not e.data :-)
den har
@denman0000_gitlab
@moose4621 yes seems so re JSON ...
I read somewhere its a good idea to rather create static tables than dynamic ones
can anyone confirm ?
@ashthespy Howdy Ash .. hope all's well with you :-)
den har
@denman0000_gitlab
@skorokithakis yassu re tikanis ?
hi all has anyone played around with measuring dc voltages with ESP ? was just wondering what resistor sizes to use .. read somewhere that the ESP pin is 1,0 v max ?
den har
@denman0000_gitlab
This is what I was reading as a start
den har
@denman0000_gitlab
den har
@denman0000_gitlab
@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
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
@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
I don't think so, it just jitters while sitting there
thanks though
den har
@denman0000_gitlab
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
hmmm yes, i think it might be noise
i'll try mitigating that, thanks
den har
@denman0000_gitlab
saw this which might be an issue
esp8266/Arduino#4296
Stavros Korokithakis
@skorokithakis
that seems to be for a stepper
den har
@denman0000_gitlab
Try check the noise with a scope or drive from 12V (or other) battery
Stavros Korokithakis
@skorokithakis
I think I figured it out, because it's software PWM, the noise is crazy when you're connected to wiofi