Task scheduling is a transformative way to write maintainable code for Arduino and other AVRs. No more spaghetti code. C++ tutorial.
by Kevin Gagnon
A simple method to power a servo on or off from the Arduino, using a NPN Darlington Transistor (TIP-120) and an Arduino.
Project showcase by Kevin Gagnon
Overcoming the one servo restriction and replacing switches, jumpers and potentiometers with software controlled variables.
An open-source Arduino base remote controller (transmitter) with many customization options for robots and drones.
Project in progress by syamil_zaini and alirezasafdari
Race through your office at the speed of light! A project inspired by the OpenLEDRace project by @gbarbarov, made at Xing in Barcelona.
Project showcase by Team XING Hackweek
Did you run out of input pins? Don't worry, here is a solution without any shift registers.
Project tutorial by Najad
Just uploaded a simple Arduino Uno example using sleep functionality with the TaskScheduler. I'll be moving the code to the ATTiny85 in the coming days and will update you.
P.S. I remembered to tweet it, too!
I've put together an example that uses Timer2 to simulate PWM being read into Pin 2 that fires the INT0_vect interrupt. I use a volatile interruptTriggered variable for a Task::canRun() method to return as a result to the TaskScheduler.
I'm not sure how time critical your application is, but this should work in a pinch for simple solutions.
I hope this is in the ballpark of your question. If not, let me know.
Or connect with your social account:
New here? Create an account