Git Product home page Git Product logo

diyirtower's Introduction

README

Can be used as a replacement of the original LEGO IR serial tower with programs and platforms such as

to load user programs and firmware on the yellow LEGO Mindstorms RCX programmable brick.

RCX firmware download setup

Hardware

Pin Assignment

Pin Assignment Table for the ATtiny13A:

IC Pin Pin Purpose Direction Side of IC
1 PB5 Reset Unused Left
2 PB3 IR_LED_TX_PIN Output Left
3 PB4 PHOTO_RX_PIN Input Left
4 GND Ground - Left
5 PB0 UART_RX_PIN Output Right
6 PB1 UART_TX_PIN Input Right
7 PB2 IR_ACTIVITY_LED_PIN Output Right
8 VCC Supply Voltage (VCC) - Right

Firmware

Find the productive firmware in folder ./firmware.

To build, run:

avr-gcc -g -Wall -Os -mmcu=attiny13 -o main.elf main.c

Want to check if it will it fit into the internal flash?

avr-size main.elf
   text	   data	    bss	    dec	    hex	filename
    776	      0	      7	    783	    30f	main.elf

Make sure to burn the fuses so that

  • the calibrated internal 9.6 MHz oscillator is selected
  • clock pre-scaler set to 1 (device is shipped with CKDIV8 programmed).

Reading fuses with avrdude (and in this case an ehajo-isp in-system programmer):

avrdude -c ehajo-isp -p t13a -U hfuse:r:-:h -U lfuse:r:-:h 

Flash the firmware:

avrdude -c ehajo-isp -p t13a -U flash:w:main.elf:e

Disclaimer

LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project.

diyirtower's People

Contributors

maehw avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.