Project in progress
Mega Bread - Atari Joystick Linking for Robotics Control

Mega Bread - Atari Joystick Linking for Robotics Control © MIT

The oldie but goodie returns in the form of the infrared joystick set from an old Atari game system. These will control multiple things.

  • 1,439 views
  • 3 comments
  • 10 respects

Components and supplies

Ardgen mega
Arduino Mega 2560 & Genuino Mega 2560
Any Arduino based card will work
×1
398 09
Adafruit RGB Backlight LCD - 16x2
Any type of readable display device
×1
Analog joystick (Generic)
The Joystick you select must have Infrared Capabilities, but you may also use almost any Infrared remote device.
×1
Adafruit industries ada239 image 75px
Solderless Breadboard Full Size
×2
11026 02
Jumper wires (generic)
×1
Mfr 25frf52 10k sml
Resistor 10k ohm
×2
IR receiver (generic)
Be sure to check if you need to install an inline resistor. Some have them built in.
×1
Bourns 3362p 1 103lf image 160px
Single Turn Potentiometer- 10k ohms
For LCD brightness and contrast control
×2
Tens70
9V battery (generic)
×1

Apps and online services

About this project

MEGA BREAD - IR Linking - Atari Joysticks

For use with robotics control when completed as a whole project. The joysticks are recovered from a bygone era of my time, '80s when computers were just taking off. Anyway, these joysticks are infrared, they work, and both have different signals, but on the same timings frequency.

One of them is a master having the reset, next, and select menu buttons on it. The other does not.

Now to the usage video. These joysticks send out some funky monkey types of signals as you will see, I traced it down to three variables that needed to be worked out.

  • Receive the IR signal from one of the joysticks.
  • Set a slight delay to allow the IR device to decipher the signal, for these joysticks it was around 15 to 20 milliseconds.
  • Await the joysticks "End of Transmission" code. This set sends out a third IR pulse at the end, and it is always the same. It is an end of activity signal of sorts.

Watch the video to see what I am talking about:

Now in the near future, and after robots take over the world.

I will have my secret robot control device to get em good. :)

I tested this setup with all of the below pictured Infrared remotes and devices.

ALL of them worked first try.

I will update the code for this shortly.

Code

This code will receive an IR signal, decode it, send to serial monitor and LCD, then reset.Arduino
UPDATED, had the wrong code in.
This is used to gather the codes from infrared devices so you can save them into a sketch for later use.
// MEGA_BREAD_IR_CONTROLS
// 5-4-2017

#include <IRremote.h>
#include <LiquidCrystal.h>

int RECV_PIN = 2;
int CONFIRM_PIN = 3;

IRrecv irrecv(RECV_PIN);
decode_results results;
LiquidCrystal lcd(22,23,27,26,25,24);

void setup()
{
  pinMode(CONFIRM_PIN, OUTPUT);
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
  lcd.begin(16, 2);
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print(" IR Recieve and ");
  lcd.setCursor(0, 1);
  lcd.print("then output test");
  delay(2000);
  lcd.clear();
}

void loop() {
  digitalWrite(CONFIRM_PIN, LOW);
  lcd.setCursor(0, 0);
  lcd.print("Ready to Recieve");
  lcd.setCursor(0, 1);
  lcd.print("Press any button");

  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    Serial.println(results.value, DEC);
    digitalWrite(CONFIRM_PIN, HIGH);
    lcd.clear();
    lcd.setCursor(0, 0);
    lcd.print(" HEX = ");
    lcd.print(results.value, HEX);
    lcd.setCursor(0, 1);
    lcd.print(" DEC = ");
    lcd.print(results.value, DEC);
    delay(3000);
    irrecv.resume(); // Receive the next value
  }
  }

Schematics

IR receiver and decoder
Be sure to read the notes attached to the image
Mega bread ir control bb 91husechr4
Wiring Schematic
Please be sure to match your LCD module pinouts correctly to your display,
NOT mine. Just verify
Mega bread ir control schem xzassrf3e0

Comments

Similar projects you might like

Control Speed and Direction of Motor

Project in progress by ahmed soliman

  • 14,165 views
  • 3 comments
  • 20 respects

Mega Bread - Hello World

Project in progress by Pigeon-Kicker

  • 1,150 views
  • 0 comments
  • 4 respects

Servo Control with TV Remote Control

Project showcase by eldo85

  • 5,591 views
  • 5 comments
  • 17 respects

MEGA BREAD - Stereo Power Audio Amplifiers

Project in progress by Pigeon-Kicker

  • 1,181 views
  • 0 comments
  • 6 respects

Remote Lamp

Project tutorial by Kutluhan Aktar

  • 1,843 views
  • 0 comments
  • 7 respects

'Roger Bot' the Pet Rover

Project showcase by hannu_hell

  • 1,857 views
  • 0 comments
  • 12 respects
Add projectSign up / Login