Tag Archives for Snippet

Write an integer to the Arduino EEPROM

Today I faced the problem that I wanted to write an int (integer) to the integrated Arduino EEPROM. The Atmel ATMega328 chip has an address space of 0-1023 and each of these slots can save 1-Byte or 8-Bit (which is … Continue reading

11. December 2016 by Marius
Categories: Arduino, Programming | Tags: , , | Leave a comment

How to avoid delay() – create a custom Arduino class – Part 2

In the previous blog post we learned how to avoid delay() if necessary. It would be very convenient when we are able to add a layer of abstraction to this code so when can easily reuse it if we need … Continue reading

15. November 2016 by Marius
Categories: Arduino, Programming, Tutorials | Tags: , , , | 1 comment

Arduino and how to avoid delay() – Part 1

The main problem with using delay() in your Arduino sketch is simply: it will block the whole system for the amount of time you specified. Since your microprocessor is pretty fast compared to most of the delay() time he is … Continue reading

14. November 2016 by Marius
Categories: Arduino, Programming, Tutorials | Tags: , , | 1 comment

CNC speed calculation

This formula is nothing very special but I had to think some time about it. 😉 For my CNC I need to calculate the speed of the machine in mm/min (seems this is the standart measuring unit at least in … Continue reading

04. August 2013 by Marius
Categories: Programming | Tags: , , | Leave a comment

Linear interpolation

As I researched about my own custom G-Code interpreter on the Arduino I realised that it was neccesary to interpolate between two points in space. Thats because when both stepper motors step at the same time at the exact same … Continue reading

15. July 2013 by Marius
Categories: Programming | Tags: , , | Leave a comment