Skip to main content

Welcome to Otto Builders the community of Otto DIY robot, we share knowledge, solve problems and make all kinds of opensource robots.

Arduino
Arduino

This is a common area that Otto Builders need help in; coding with Arduino IDE and we are here to help! 

Take our free course on coding 

Take a look at existing documentation in our forum to see if others have dealt with a similar problem to yours.

 

🔧 Project
ArduinoIdeas

Getting additional 1536 Bytes of Flash in the Nano

Normally the nano has 30720 bytes of flash available; the uno has 32256 bytes of flash. The uno exists in two versions: either with DIP or with soldered PLCC as the nano has. 
 

So why not flashing the bootloader for an uno on it..?!
For a howto for flashing the bootloader see
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISP/#use-arduino-as-isp

From now on, in the IDE you have to select the uno for programming the (ex)-nano, and you should tag/label it as "uno" too.

🔧 Project
RemixArduinoIdeas

Driving the US Sensor with only one IO-Pin

Making a Y-wire to connect the trigger- and the echo-pins to one of the digital pins - pin 10 for example. And at the start of your code assign the pin# to both symbols..

const unsigned int PIN_UStrigg = 10;

const unsigned int PIN_USecho = 10;

I don't use the HC-SR04 library - I wrote my own code to handle it, to keep it small in flash and short in execution time. And my opinion, there's no need to deal with floats or long integers.

If an obstacle is more then 50cm away, there is still enough place to walk... (More)

Servo Speed Control - Idea to discuss

When writing a new angle to a servo remember that a servo pulse is updated every 20ms - so for a slow move / sweep a wait state (delay) before writing a servo pos should be a multiple of 20ms.

When incrementing the angle by 1 and writing the new position every 50ms, the arm would move after 60ms then after 40ms, again after 60ms then 40ms and so on.

When incrementing the angle by 1 and writing the new position every 10ms, the arm would move after 20ms but in the meantime the angle is incremented by 2; when... (More)

📝 Post
ArduinoIdeas
How to gain another 1536 Bytes Flash on the nano..?

Flash the bootloader for an uno on it!

Normally the nano has 30720 bytes of flash available; the uno has 32256 bytes of flash. The uno exists in two versions: either with DIP or with soldered PLCC as the nano has.

For a howto see
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ArduinoISP/#use-arduino-as-isp

Edit: I Forgot to mention - From now on in the IDE you have to select the uno for programming the (ex)-nano, and you should tag it as "uno" too.