Difference between revisions of "EMG - PhantomX Reactor Robot"

From RobolaboWiki
Jump to: navigation, search
Line 16: Line 16:
  
 
<h2> TimerOne library </h2>
 
<h2> TimerOne library </h2>
 +
<li> Download the TimerOne library from: [[http://www.robolabo.etsit.upm.es/wikiFiles/TimerOne.zip here ]]. </li>
  
 
<h2> Setting up the timer </h2>
 
<h2> Setting up the timer </h2>
  
 
<h1> EMG  </h1>
 
<h1> EMG  </h1>

Revision as of 14:11, 24 February 2025


Timer

Note: Most of the information of this section is obtained from: https://www.prometec.net/timers/ Please refer to the previuos link and the library if you need more information.

A timer in electronics is a device or circuit used to measure and control time intervals. It generates precise delays or oscillations, making it essential in various applications like blinking LEDs, controlling motors or executing periodic events, between others.

It operates independently from the main program, allowing the microcontroller to perform other tasks simultaneously. Timers typically work by counting clock pulses from the microcontroller’s internal clock or an external source. They can be configured in various modes, such as delay generation, pulse width modulation (PWM), event counting, or frequency measurement.

Timers are configured by setting up several registers, to adjust the sampling time, durating, mode, starting, stoping,.... However, in our case, for the PhantomX React Robot, based on a AVR microcontroller, we will work with the TimerOne library.

TimerOne library

  • Download the TimerOne library from: [here ].
  • Setting up the timer

    EMG