Coder Social home page Coder Social logo

petezah / roomba_wall_v3 Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 1.8 MB

A slightly more advanced AVR program for ATTiny45 to transmit a virtual wall signal for an iRobot Roomba

License: GNU General Public License v3.0

Makefile 0.41% C++ 7.81% C 0.29% HTML 91.49%

roomba_wall_v3's Introduction

roomba_wall_v3

An AVR device, based on ATTiny45, to transmit a virtual wall signal for an iRobot Roomba

Folder layout

  • /firmware
    • Source for the ATTiny45 firmware
  • /hardware
    • Files describing the board layout, etc

Building

Prerequisites for "happy path":

  • An AVR programmer
  • AVR-GCC installed
    • Easiest way to get this is 'sudo apt-get install arduino'
  • A 6-position, dual-row IDC cable
  • A 6-position, dual-row, male header to either:
    • Solder onto your board for programming, or
    • Plug into the IDC cable and "wedge" it into the ISP header during programming (recommended, and is what I do)

Steps

hardware

firmware

There are two methods to wire the board for programming:

  • Recommended way:

  • Alternate way:

    • Order my Raspberry Pi ISP board here: https://oshpark.com/shared_projects/iYtnPahC
    • Or hook up the ISP pins on the assembled board to your Raspberry PI as follows:
      • ISP Pin 1 --> Raspberry Pi Pin 21 (MISO)
      • ISP Pin 2 --> Raspberry Pi Pin 17 (3.3V)
      • ISP Pin 3 --> Raspberry Pi Pin 23 (SCK)
      • ISP Pin 4 --> Raspberry Pi Pin 19 (MOSI)
      • ISP Pin 5 --> Raspberry Pi Pin 15 (GPIO22)
      • ISP Pin 6 --> Raspberry Pi Pin 25 (GND)

Once wiring is accomplished:

  • Execute the following on the Raspberry Pi command line
    • cd firmware
    • make fuse
    • make install

Operating

There are a few different ways to operate this device.

Default (easy) timed mode

When the device is off (sleeping), simply press and release the button once. The device will respond by turning the indicator LED on for one second and then turning it off. After this, the device will operate for 3 hours and then go to sleep again.

Custom timed mode

When the device is off (sleeping), hold down the button. The device will blink briefly, once every half second. Every blink corresponds to 15 minutes of operation. For example, if you want the device to operate for 30 minutes, you will wait for 2 blinks; or, if you want the device to operate for 1 hour and 15 minutes, you will wait for 5 blinks. Once you reach the desired count, release the button. The device will then wait, and will then blink the LED indicator the number of times it has counted for the running time. After this, the device will run for the set time, and then will go to sleep.

Turning off the device (putting it to sleep manually)

When the device is operating, hold down the button for two seconds. The device will blink 3 times rapidly. Now release the button, and the device will blink 2 times rapidly, and will then go to sleep.

roomba_wall_v3's People

Contributors

petezah avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brunetton

roomba_wall_v3's Issues

compiled .hex or .elf? ATTiny45 vs 85?

Thank you for sharing this great project! I built one this afternoon from your OSHpark link and am planning to flash the ATtiny tomorrow. I normally use an Atmel ICE programmer on Windows for my ATtiny chips, do you have a compiled .hex or .elf file that you can share in the repo? I used your firmware to create a build, but it was having trouble adapting the makefile from Linux.

You use ATTiny45 and ATTiny 85 in your repo, do you see one being better than the other for this application?

No BOM for mouser

Hi, thanks for making this project available to us- there is no mouser BOM, and the CSV in the bom folder does not contain part numbers. Would this be a mistaken omission or am i reading the readme incorrectly?
Thanks!

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.