One thing about event-driven code,

It only has to keep up with the driving events. :smiley:
Extra is good as long as it doesn't jack the price.

In general I find most people's automation needs shouldn't take much keeping up with at all. I find events and required responses tend to be slower than 115200 baud serial, human speed.

In general I find most people's automation needs shouldn't take much keeping up with at all. I find events and required responses tend to be slower than 115200 baud serial, human speed.

There are many events and responses going on which you can't see in a human. For example, each individual neuron receives data from another neuron (or more) and outputs a signal based on that information. There are an estimated 100 trillion of these neurons in the human brain, and decisions are made in less than a second, so from this information we can say that the human body does far more "event-driven actions" than any robot ever created thus far. If what you say is true, we would be able to build robots that can respond to various stimuli just as quickly as a human can. This is not yet true.

It's a bit simpler to automate a house, barn, greenhouse or machine(s) (liability is another matter) for farm or industry, CNC cutters and printers, things like that. Copters and drones aren't so slow or simple.

Spend a couple years reading threads and get an idea of realistic project goals for differently experienced members here. There's a strange inverse relationship between knowledge and goals, the less actual experience with code the OP has, the bigger the project and the sooner it's expected to just fit together pretty much by itself.

GoForSmoke:
It only has to keep up with the driving events. :smiley:
Extra is good as long as it doesn't jack the price.

In general I find most people's automation needs shouldn't take much keeping up with at all. I find events and required responses tend to be slower than 115200 baud serial, human speed.

Yes. No need for delays or millis either. Just continue to do something until an event occurs, then do something else until another event occurs. Why should it jack the price?
But if you can type at 115200 characters/second you must be superhuman.
Bet it wears your fingers down quickly, though. :slight_smile:

Spend a couple years reading threads and get an idea of realistic project goals for differently experienced members here. There's a strange inverse relationship between knowledge and goals, the less actual experience with code the OP has, the bigger the project and the sooner it's expected to just fit together pretty much by itself.

This applies to a lot of people, but not all. For example, I am not experienced with robotics, and I expect my current robotics project to take years before I consider it complete.

Henry_Best:
Yes. No need for delays or millis either. Just continue to do something until an event occurs, then do something else until another event occurs. Why should it jack the price?
But if you can type at 115200 characters/second you must be superhuman.
Bet it wears your fingers down quickly, though. :slight_smile:

Time is an event, Henry. Whether by delay or millis checks sometimes a wait is needed.