Introduction: Tim's Cybot Arduino NANO Remote Control

About: Retired due to health. Oldish. My background is in Structural Engineering. Also smith of many trades. The majority of my project will be what can be made sat in a chair within arm's reach, on a plotter, 3D pri…

This project is to create an Infrared Remote Control to control the Original Cybot received with the magazine Ultimate Real Robots, started back in 2001.

Reason for making the remote:(a little history)

Before the issue of the parts for the IR handset, Cybot was put into different modes by selecting DIP Switches. (There was no issue with Cybot while this was the case) When the IR Handset was issued, things changed. A processor was upgraded to change the function of the DIP Switches. The DIP Switches where then used to set the channel used by the IR Handset so that more than one Cybot could be used together at the same time. (Up to 16 Cybot could be controlled with the Infrared Controls ) However, when the Infrared-Download-Board was issued, there where problems. Not all the boards where manufactured the same, there where issues that made some not work correctly or not work at all. There was a fix issued but this did not fix all. I was one of the unlucky ones, nothing worked for me from there on, everything relied on the Infrared Handset working.

If you, like me, was one of the unlucky ones that had the same problem, you may wish to dig out your old box of Cybot bits and make this Infrared Controller to control it.

The only thing I could not do is: Voice Control and PC LINK

Step 1: The Remote in Action

I had trouble focusing, I used my old phone to make the video.

Step 2: Cybot

I'm sorry, but unless you have a Cybot, then this is not much use for you.

But if you know anyone that has one:

May be this will resurrect those dormant little fellows, hiding away in those dusty closets :)

Step 3: Lets Start. First the Prototype.

Before making the handset I built a prototype to test thing out and make sure my code worked.

R8 and R9 are pullup resistors for the I2C bus. a lot of people forget to add these to the circuit, but they are required. (one pair per bus, not device)
As a rule of thumb to the resistors are added to the master, but as the Arduino could be used as master or slave and to keep things simple, internal pull are not used in the library.

I have used Internal Pullup Resistors for the Pins connected to the switches. So all Switches are to close to Ground.

The Resistor / Capacitor Pairs R1 to R7, C1 to C7 are to compensate for bounce. (so are not necessary if you want to do a quick test, I recommend them for stability)

Q1 is the driver for the Infrared LED (940nm). This is so full power is used by the LED to transmit the signals. (again if testing next to your Cybot, Q1, C8 and R11 can be removed. Connecting R10 and LED1 in series between Pin D3 and 5v should work)

I created the circuit using Fritzing, so here is the file so you can view it better:

Step 4: Program the Arduino

After making the prototype from the circuit above you will need to upload my HEX file to the Arduino NANO.

I use this uploader to do this: XLoader.

I have done a HEX file for the NANO and the UNO. (as far as I know they are both the same)

Arduino NANO: Tims_Cybot_Transmitter_Nano_Atmaga328P_Internal_Pullup.hex

Arduino UNO: Tims_Cybot_Transmitter_Genuino_Uno_Internal_Pullup.hex

For the Built version I use External Pullup Resistors.

Arduino NANO: Tims_Cybot_Transmitter_Nano_Atmaga328P.hex Using External Pullup Resistors.

Arduino UNO: Tims_Cybot_Transmitter_Genuino_Uno.hex Using External Pullup Resistors.

(I don't know if HEX Files have the bootloader in them, but I did these HEX Files with it configured to Old Bootloader for the NANO)

XLoader is an easy program to use, you don't need to install it, it is a standalone program that runs from wherever yo put it. You tell it where the file is and tell it where to send it.(the port your NANO is plugged into)

Step 5: Next Step Is to Make a Functional Usable Handset.

Rather than make one circuit board and mount everything to the one board, I have decided to make this project modular.

By making it modular, some modules may be found on the internet.

Also, you will see from the sketch, I like show all the inner workings of my projects :)

Step 6: List of Components / Modules:

Step 7: Arduino NANO

The chip needs to be ATmega328 (If you are using China Clones)

This program uses 90% of both SRAM and EEPROM

Step 8: OLED

Mono (Black and White)

0.96 inch 128 x 64 pixels I2C connection

Step 9: Rotary Switch With Push Button

I made this board my self.

I wanted external pullup resistors and de-bounce on all switches. Some rotary switch modules can be found on the internet.(be sure they have pullup resistors on the board)

It can be made on a Perfboard.

Here is a Fritzing file:
(Obviously the wires go under the board)

Step 10: Infrared Transmitter

I made this board my self.

There are some modules on the internet, but be sure to get one that has a driver. (has a transistor to power the IR LED from the power supply)

It can be made on a Perfboard.

Here is a Fritzing file:
(Obviously the wires go under the board)

Step 11: Control Buttons

Luckily I had a 4 button panel I removed from an old Epson printer.

This panel has pullup resistors and de-bounce components fitted to it. But not every one has a box full of old bits to use, so here is the circuit.

It can be made on a Perfboard.

Here is a Fritzing file:
(Obviously the wires go under the board Apart from one)

A Note on making it on a Perf-Board, the top and bottom fits into plastic parts I made on my 3D Printer.

The size of the board should be 65mm X 40mm.

When fitting the plug to the cable, note that the pins are as follows:

Left Forward = pin D7

Left Reverse = pin D8

Right Forward = pin D6

Right Reverse = pin D9

Step 12: Power and I2C Bus-Board

To make things easy to connect all the components together I have made a Bus-Board for the power and I2C.

Putting the I2C bus on the board with the power makes it easy to add the 2 Pullup Resistors required for the I2C Bus. (As I have only one I2C component, I only needed to fit 2 headers on that bus)

It can be made on a Stripboard.

Here is a Fritzing file:

Step 13: To Connect All the Components Together a Few Cables Need Making.

Step 14: 3D Printed Parts.

I include a picture with each file to show the orientation they are printed.

Step 15: Base

STL File: Base.stl

Step 16: Switch Side

STL File: Switch Side.stl

Step 17: NANO Side

STL File: NANO Side.stl

Step 18: Battery Clip

Step 19: NANO Clip

STL File: NANO Clip.stl Also need to make a mirrored copy

Step 20: Encoder Nut

Step 21: Encoder Knob

STL File: Knob.stl

Step 22: Button PCB Support

STL File: Button Support.stl

2 are required.

Step 23: OLED Support

Step 24: Assembly (step 1)

The first parts to fit are:

The Switch to the Switch Side. (2 x small screws)

Infrared Transmitter Module to the Base. (2 x M3x10 flat end self tappers)

Power and I2C Bus-Board to the Base. (2 x M3x10 flat end self tappers)

Rotary Switch Module to the Base. (M7 Nut)

Place Battery with Battery Clip on Base.

Fit Switch Side to Base over the Battery Clip. (2 x M3x10 flat end self tappers)

Fit cables from the Switch to the Battery and the Arduino NANO.

The Cable to the Arduino NANO goes to the pins VIN and GND.

Step 25: Assembly (step 2)

Before fitting the Arduino NANO to the base, it is a good time to fit some of the cables to the Arduino.

See picture above for cable lengths and ends.

Arduino to Power-Bus. The split connector end goes to pins 5V and opposite GND.

Arduino to I2C Bus. Connect to pins A4 and A5.

Arduino to Encoder Buttons. Connect to pins A0, A1 and A2.

Arduino to IR. Connect to pin D3.

Step 26: Assembly (step 3)

Now the Arduino can be fitted in place. (lower cables need to be bent up )


Arduino to Power-Bus. Connect to pins on the Bus-Board, 5V to VCC, GND to GND.

Arduino to I2C Bus. Connect to pins on the Bus-Board, A4 to SDA, A5 to SCL.

Arduino to Encoder Buttons. Connect to Encoder Module.

Arduino to IR. Connect to Infrared Module.

Connect Power Bus to IR.

Connect Power Bus to Encoder Module.

Connect Power Bus to OLED. (just to the power bus at the moment)

Connect I2C Bus to OLED. (just to the I2C bus at the moment)

Step 27: Assembly (step 4)

Next is to fit the NANO Side.

This has 2 NANO Clips attached (1 x M3x10 flat end self tapper in each)

Step 28: Assembly (step 5)

Next is to fit the Button Board Supports to the Button Board.

Step 29: Assembly (step 6)

Next is to connect the Button Board and the OLED

The cables for the Button Board go through the NANO Side Support.
Power Cable goes to the Power Bus.

The Button Cable connects as follows:

Left Forward = pin D7

Left Reverse = pin D8

Right Forward = pin D6

Right Reverse = pin D9

The OLED connects to the previously connected cables to the Bus Board.

Step 30: Assembly (step 7)

Now the Button board and OLED Support can be fitted to the top. Also the Knob for the Rotary Encoder.

Step 31: Assembly (step 8)

Finally fit the OLED to it's support. (2 x M2 self tapping screws)

Arduino Contest 2019

Participated in the
Arduino Contest 2019