Re: [TriEmbed] FXOS8700CQ EOL, last orders December of this year

2021-01-26 Thread Pete Soper via TriEmbed
; ___ Triangle, NC Embedded Computing mailing list To post message: TriEmbed@triembed.org <mailto:TriEmbed@triembed.org> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org TriEmbed web site:

Re: [TriEmbed] FXOS8700CQ EOL, last orders December of this year

2021-01-26 Thread Pete Soper via TriEmbed
___ Triangle, NC Embedded Computing mailing list To post message: TriEmbed@triembed.org <mailto:TriEmbed@triembed.org> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org TriEmbed web site: http://TriEmbed.org To unsubscribe, click link and send a blank message: mail

Re: [TriEmbed] GitHub heads up: password logins go away August 13th

2021-01-26 Thread Robert Mackie via TriEmbed
Hey Folks, Could use some insights from you. My normal case - on a computer I own, or work at regularly and am the only user of, or on an account i own and am the only user of (home or work), it seems like tokens won't be a problem. In fact, they may make things even easier, day-to-day. I have 2

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
Scott, I probably have plenty to learn from that statement. I am not sure I fully understand playing nice with interrupts. The delay() usage was just me being lazy and hoping it worked from code copied. Definitely no lessons needed there. It was just known bad practice skimping for time. It did

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Scott Hall via TriEmbed
I concur. On 1/26/21 1:38 PM, Carl Nobile via TriEmbed wrote: > This one may be better. > https://deepbluembedded.com/why-use-timer-instead-of-delay/ > > > On Tue, Jan 26, 2021 at 1:35 PM Carl Nobile > wrote: > > John, > > So I assume you need a delay there,

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Scott Hall via TriEmbed
Interrupts are the way to.  I have been advocating and professing using asynchronous coding techniques over synchronous techniques ever since the late 1980s.  Interrupt routines are to get the values of an interface quickly and set a handshake variable to a slower processing routine.  You never use

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
Mike, Maybe I am misunderstanding. To my knowledge the ESP8266 is not multi-threading. If this library is working as I expect, it is all happening sequential through millis() and micro(). Now I admit that I based that statement off the Ticker Lib from Arduino and this library is different, so I

Re: [TriEmbed] FXOS8700CQ EOL, last orders December of this year

2021-01-26 Thread Chip McClelland via TriEmbed
bscribe, click link and send a blank message: mailto: unsubscribe-triem...@bitser.net?subject=unsubscribe -- next part -- An HTML attachment was scrubbed... URL: < http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20210126/72a40c2d/attachment-0001.html>

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Michael Monaghan via TriEmbed
John, > I am not sure why you could not change a variable if it is global and done fast. Because we have no idea what state the variables were in when the service routine was called. Were they being inspected by main code? Or modified? Perhaps Garbage collection is in progress? Without a bit o

Re: [TriEmbed] ESP32 Order

2021-01-26 Thread Huan Truong via TriEmbed
I have 2 esp-s2 boards laying around so if someone wants something quickly, I'm happy to send to you. I'm in the west coast so it will take a couple of days. Please excuse my typos, sent from phone. On Jan 26, 2021, at 8:41 AM, Michael Monaghan via TriEmbed wrote:  Nick, Please put me d

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
Carl, I do not NEED the delay, I just need to read the A0 at 1 ms intervals. I don't need to stop the processor for that, I need to code it responsibly if I want it to work the best way I want. I was being lazy expecting my time frame to be well within the parameters required for the desired en

[TriEmbed] FXOS8700CQ EOL, last orders December of this year

2021-01-26 Thread Pete Soper via TriEmbed
"no replacement planned". If anybody knows of a replacement that supports vector magnitude interrupts I'd really love a pointer to it. Thanks, Pete https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiRq_6knbruAhWKGVkFHSqhAqwQFjABegQIAhAC&url=https%3A%2F%2Fcommunity.nxp.com

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Michael Monaghan via TriEmbed
My cat feeder is based on this concept. All the time critical tasks (as defined by cats) are handled in Timer Callbacks (micropython's version). They are much more accurate than the RTC since they are based on processor ticks. As a bonus, the web server runs on the main thread and I can ^C out to

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Michael Monaghan via TriEmbed
John, I've been down this road. Watch for the potholes. Ticker Tasks are interrupt like (no matter what you might read). Tasks are not guaranteed to be re-entrant safe and you must feed the dogs if you dwell in the routine. Use single bit flags to avoid code collisions. Get the job done quickly

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Carl Nobile via TriEmbed
This one may be better. https://deepbluembedded.com/why-use-timer-instead-of-delay/ On Tue, Jan 26, 2021 at 1:35 PM Carl Nobile wrote: > John, > > So I assume you need a delay there, so what you can do is use an interrupt > in your delay. Then the delay is managed between all other interrupts.

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Carl Nobile via TriEmbed
John, So I assume you need a delay there, so what you can do is use an interrupt in your delay. Then the delay is managed between all other interrupts. I found this simple example of using an interrupt as a delay. It' uses an Arduino, but the concept may help. https://thekurks.net/blog/2016/4/25/

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
Carl, Right, makes sense, I really use delays sparingly and go for millis() But this was a copy-paste task. and it was only 25ms of delay, so I let it slide. And considering I am probably only using like 10% of computing power I thought I could let it slide. And I could have if it wasn't for yo

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Carl Nobile via TriEmbed
Yeah, delays could mess with interrupts even if they are not in the interrupt itself. Actually what happens is the interrupt messes with the delay. If the interrupt happens in the middle of the delay the delay will be longer than what you set it at. Almost all processors will be running interrupts

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
You see that, now you guys are making me dig and I was happy with my solution. `,~) ticker lib uses millis() and micro() and not interrupt, but with your obsessed curiosities, now I may have found the real problem. You are not supposed to use delay() in the task. And I did use delay(), so I pr

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Pete Soper via TriEmbed
Thanks for sharing the details. As you and the others may know I made the journey from hobby to narrowly focused biz with respect to this stuff, so my perspectives and biases are now very different from what they were in 2012. I too am very wary of learning curves vs just getting what you need

Re: [TriEmbed] GitHub heads up: password logins go away August 13th

2021-01-26 Thread Carl Nobile via TriEmbed
Sure, I already described in one of my previous tutorials how to actually get the token, but not how to use it for normal SSH access. ~Carl On Tue, Jan 26, 2021 at 11:45 AM Pete Soper via TriEmbed < triembed@triembed.org> wrote: > Been a long time since I hooked up for working with a GitHub rep

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Carl Nobile via TriEmbed
I wonder if your code used an interrupt that couldn't handle the 25 ms time period. ~Carl On Tue, Jan 26, 2021 at 11:10 AM John Vaughters via TriEmbed < triembed@triembed.org> wrote: > Pete, > > There is a debug port on the board for sure, not sure if it qualifies as > JTAG. I've never actually u

[TriEmbed] GitHub heads up: password logins go away August 13th

2021-01-26 Thread Pete Soper via TriEmbed
Been a long time since I hooked up for working with a GitHub repo (the day MS bought them) and I just got a message saying it's time to get with the the token, SSH thing. If anybody's interested I could take notes about how to make this transition, but it will be Linux-centric. -Pete

Re: [TriEmbed] ESP32 Order

2021-01-26 Thread Michael Monaghan via TriEmbed
Nick, Please put me down for 5 of these. Do you Zelle, PayPal or GPay? Mike On Mon, Jan 25, 2021 at 7:22 PM Nick Edgington via TriEmbed < triembed@triembed.org> wrote: > I am planning to order some esp32 from China, intending to have them sent > DHL which mean they should be here in a couple o

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
Pete, There is a debug port on the board for sure, not sure if it qualifies as JTAG. I've never actually used a debugger on a micro-processor, only on regular desktop/server programming. I never invested the time or money to get that up to speed. I will say it dumps a bunch of hex code to the s

[TriEmbed] more RP2040 tools

2021-01-26 Thread Pete Soper via TriEmbed
There are a few more RP2040-related tool links related on the web site , thanks to Mike Fulbright. -Pete ___ Triangle, NC Embedded Computing mailing list To post message: TriEmbed@triembed.org

Re: [TriEmbed] ESP8266 Programming tip

2021-01-26 Thread Pete Soper via TriEmbed
Does ESP-12E support JTAG debugging? It might be interesting to figure out what the crash is about (maybe there isn't actually a task scheduler present and if you don't "yield" back you've violated the API contract?). But you've stuck with the pragmatic approach, John. Thanks for the tip. Get

[TriEmbed] ESP8266 Programming tip

2021-01-26 Thread John Vaughters via TriEmbed
In my playing around with the ESP-12e's that I have, I found something that may save someone some time. Using the Ticker library to schedule a task, I quickly found out that the task better be quick or it will crash the program. To define quick, my task was maybe 25ms, which was enough to crash

Re: [TriEmbed] ESP32 Order

2021-01-26 Thread John Vaughters via TriEmbed
Nick, I am interested in a bulk purchase possibility. Will volume get the price down, if so by how much. Also, I am interested in ESP-12(e or f). Do you think adding more products to the mix would get the overall price down? Depending on the cost break down I may change my qty. 10 esp32 10 es

Re: [TriEmbed] ESP32 Order

2021-01-26 Thread Brian via TriEmbed
Do you have a link to the full listing? I might want in on this. The WROVER module itself does not have an SD card slot mechanism; are you looking at a dev kit? As an aside, don't count on a timely delivery from China. Carriers and customs are hugely backed up due to the pandemic. That sai