Angus Gratton
Just runs your program
(Simplicity)
Runs whole OS
(Power)
Arduino <100mA, Sleep Modes
Raspberry Pi <1000mA, No Sleep
Raspberry Pi: 24 Linpack MFLOPS
Arduino: 89 Linpack kFLOPS
Raspberry Pi: 875 DMIPS
Arduino: 5.2 DMIPS
Sources: http://www.ecrostech.com/Other/Resources/Dhrystone.htm
http://mobile.arm.com/products/processors/classic/arm11/arm1176.php
http://people.sc.fsu.edu/~%20jburkardt/m_src/linpack_bench/linpack_bench.html
PIN=4
wiringpi2.pinMode(PIN,1)
while True:
wiringpi2.digitalWrite(PIN, 1)
wiringpi2.digitalWrite(PIN, 0)
sudo chrt 99 ./python_toggle.py
Better, worse, same?
pinMode(PIN, OUTPUT);
while(1)
{
digitalWrite(PIN, HIGH);
digitalWrite(PIN, LOW);
}
pinMode(PIN, OUTPUT);
while(1)
{
digitalWrite(PIN, HIGH);
digitalWrite(PIN, LOW);
}
cli(); // Turn off all interrupts
// Do your realtime thing here
sei(); // Turn back on all interrupts