Basic Arduino Due oscilloscope
Saturday, April 13, 2013
Friday, April 12, 2013
UDOO = 4 Raspberry PI + Arduino DUE
UDOO is a mini PC that could run either Android or Linux, with an Arduino-compatible board embedded.
UDOO is a powerful prototyping board for software development and design, it's easy to use and with a few steps you can start using it and creating your projects with minimum knowledge.
UDOO merges different computing worlds in one; each world has its strengths and weaknesses, and all of them are useful today in education as well as Do-It-Yourself (DIY) and rapid prototyping endeavours.
UDOO is an open hardware, low-cost computer equipped with an ARM i.MX6 Freescale processor for Android and Linux, alongside Arduino DUE's ARM SAM3X, both CPU integrated on the same board!
UDOO's size is 4.33 inch x 3.35 inch (11 cm x 8.5 cm) and it has low power consumption.
Support us on Kickstarter: http://kck.st/XBthCV
![]() |
UDOO = 4 Raspberry PI + Arduino DUE |
UDOO is a powerful prototyping board for software development and design, it's easy to use and with a few steps you can start using it and creating your projects with minimum knowledge.
UDOO merges different computing worlds in one; each world has its strengths and weaknesses, and all of them are useful today in education as well as Do-It-Yourself (DIY) and rapid prototyping endeavours.
UDOO is an open hardware, low-cost computer equipped with an ARM i.MX6 Freescale processor for Android and Linux, alongside Arduino DUE's ARM SAM3X, both CPU integrated on the same board!
UDOO's size is 4.33 inch x 3.35 inch (11 cm x 8.5 cm) and it has low power consumption.
Support us on Kickstarter: http://kck.st/XBthCV
Wednesday, April 10, 2013
Implement Timer Interrupt for Arduino Due
The code implement Timer Interrupt for Arduino Due, to toggle LED every second and send the duration in millisecond to PC via Serial port.
int led = 13; volatile boolean ledon; volatile unsigned long lasttime; volatile unsigned long now; int FREQ_1Hz = 1; void TC3_Handler(){ TC_GetStatus(TC1, 0); now = millis(); digitalWrite(led, ledon = !ledon); Serial.println(now - lasttime); lasttime = now; } void startTimer(Tc *tc, uint32_t channel, IRQn_Type irq, uint32_t frequency){ //Enable or disable write protect of PMC registers. pmc_set_writeprotect(false); //Enable the specified peripheral clock. pmc_enable_periph_clk((uint32_t)irq); TC_Configure(tc, channel, TC_CMR_WAVE|TC_CMR_WAVSEL_UP_RC|TC_CMR_TCCLKS_TIMER_CLOCK4); uint32_t rc = VARIANT_MCK/128/frequency; TC_SetRA(tc, channel, rc/2); TC_SetRC(tc, channel, rc); TC_Start(tc, channel); tc->TC_CHANNEL[channel].TC_IER = TC_IER_CPCS; tc->TC_CHANNEL[channel].TC_IDR = ~TC_IER_CPCS; NVIC_EnableIRQ(irq); } void setup() { pinMode(led, OUTPUT); Serial.begin(9600); startTimer(TC1, 0, TC3_IRQn, FREQ_1Hz); lasttime = 0; } void loop() { }
![]() |
Implement Timer Interrupt for Arduino Due |
Subscribe to:
Posts (Atom)