Arduino Event-Based Programming

Поділитися
Вставка
  • Опубліковано 19 лип 2016
  • In this inaugural episode of the Tinkerer's Toolbox, I am showing a better way to program Arduinos using the Eventually library. This tutorial shows what is wrong with the traditional method of Arduino programming, and how Eventually can save you from the awful code-mess that plagues all but the simplest Arduino programs.

КОМЕНТАРІ • 271

  • @inspiredtiny
    @inspiredtiny 4 роки тому +25

    The classic blink code is for those who have no idea in programming or microcontrollers. It is simple enough to be easily understood and have them interested.

  • @fjonesjones2
    @fjonesjones2 6 років тому +15

    Being a newbie to programming, it's great to see different methods used, to arrive at a similar basic outcome. Thank you for your time and effort. Nice video mate.

  • @MGL83
    @MGL83 4 роки тому +10

    Just use interrupts. It's way simpler.

  • @favesongslist
    @favesongslist 4 роки тому +1

    I wrote something very similar, integrated with MQTT ; your version has given me food for thought. Well done.

  • @3dw3dw
    @3dw3dw 7 років тому +6

    That's fantastic. Can't wait to use this library. I want to use a shift registers to scan through the states of various (numerous) inputs from a very few pins on the arduino. I hope eventually will help simplify this process and give my code the elbow room of a c++ environment.

  • @realsoftgames7174
    @realsoftgames7174 5 років тому

    thanks for sharing this ill be looking at implementing it into my project. is there any documentation for this library floating around anywhere i would like to look more into it as i plan on using it as a transmitter/Reciever for an ESK8 Board.

  • @Deemooo
    @Deemooo 7 років тому +5

    This could be really helpful for my midi instrument project! Thank you

  • @byronwatkins2591
    @byronwatkins2591 5 років тому

    So, how might one update a display, check for serial port activity, etc. that one normally does in 'loop()'?

  • @shrikantnikam2426
    @shrikantnikam2426 4 роки тому

    Is it possible to make millis function in separate tab and use millis single line command like delay? For make code more simpler

  • @kayrizob92
    @kayrizob92 4 роки тому

    Does this method work to fade an led or run a for loop/ PWM, controlled by a button press?

  • @drumminjeff71
    @drumminjeff71 3 роки тому +1

    I absolutely love this code. I'm building a wave maker for an aquarium using this setup and it's working fine. I wanted to add in another pump to run at different times so I created another time listener. The problem is the second time listener I created will not operate at a slower speed than the first operator for some reason. I'm going to post my code eventually but I'm having problems figuring out how to add more time listeners.

  • @thomasweyermann5848
    @thomasweyermann5848 4 роки тому +2

    Thank you! This is exactly what I was looking for!!

  • @salehroueimiab2199
    @salehroueimiab2199 3 роки тому

    Event driven absolutely makes sense here. Thanks for filling the gap!

  • @leeaustex2670
    @leeaustex2670 4 роки тому +1

    Oh, and this looks awesome! I can't wait to try it out!

  • @ManojTripathi8867
    @ManojTripathi8867 6 років тому

    i am following your code simultaneously on sketch but it gives error

  • @AccidentalScience
    @AccidentalScience 6 років тому +1

    May I link your video in the description of a my recent video where I show a event-driven (and RPC) framework originally designed for devices that are slightly different from Arduino? I think your example at the beginning is useful to understand how messy can become programs in sequential execution.

  • @hairankunhaqaiq8108
    @hairankunhaqaiq8108 4 роки тому

    can anyone help me in controlling a motor that is for a specific time i want it to turn on and also taking some inputs from sensors to turn it on but specified time period will not affect when it is on due to a sensor output but after sensor is done the specified time period should start whee it ended . Regards

  • @thowsawi
    @thowsawi 6 років тому +1

    Thanks a very good explanation for those asking why the not been written before this for make since as the writer explained in line what he is doing and how to think

  • @Graham1904
    @Graham1904 4 роки тому

    Looks great but why have you the expression stop Blink in the startBlink function?

  • @liboradamec7451
    @liboradamec7451 3 роки тому

    Is there some method for listening during the running cycle like FOR or WHILE, or it is necessary to use an interrupts on Arduino pins?