sharkduino / Arduino_Animal_Tag

The main code that runs on the Sharkduinos
0 stars 0 forks source link

Look into lowering clock frequency #28

Open TheBen27 opened 7 years ago

TheBen27 commented 7 years ago

By changing the fuses on the Arduino, we can choose to use very low-frequency clocks (128Khz, even) without changing the hardware. The Arduino spends most of its time in I2c and SPI transactions, which could be the cause of some wasted cycles (waiting for the transaction to complete).

WLaney commented 7 years ago

I think this is more of a discussion topic. You should email this to the list or we can talk about it at the next meeting.

I would do so research into what the power savings actually are. Also once we are out of the Arduino IDE we should probably think about changing microcontrollers.

TheBen27 commented 7 years ago

Actually, we might not have to move out of the IDE? AVR LibC has some headers that let you set the fuse bits within the source code.

The problem, of course, is that Arduino probably sets those fuse bits in its own code. So it's anybody's guess as to what will happen.

Like I said, I'll get into it more over the weekend.

On Apr 7, 2017 8:53 PM, "William Laney" notifications@github.com wrote:

I think this is more of a discussion topic. You should email this to the list or we can talk about it at the next meeting.

I would do so research into what the power savings actually are. Also once we are out of the Arduino IDE we should probably think about changing microcontrollers.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WLaney/Arduino_Animal_Tag/issues/28#issuecomment-292683307, or mute the thread https://github.com/notifications/unsubscribe-auth/AI_0JbqPWZwberHw8JwZD5LVZf2F5LM1ks5rttqQgaJpZM4M3e9t .

WLaney commented 6 years ago

Me and Kelvin have been looking at the 328p clock speed in Tribesat. If you're still interested in this you should maybe talk to him.