Giter VIP home page Giter VIP logo

bluebox-avr's People

Contributors

davidgriffith avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ronwoch

bluebox-avr's Issues

EEPROM write cycles

It might be a good idea to implement some sort of wear-leveling scheme to keep the EEPROM from dying early. It was suggested to me that some sort of round-robin scheme would do.

Doodles...

struct chunk {
    uint8_t generation;
    uint8_t id;
    uint8_t mode;
    uint8_t speed;
    uint8_t data [32];
    uint8_t checksum;
}
struct chunk[12] eeprom;

id ranges from 0-12 with 0 being the startup mode (data part ignored). On startup, scan the eeprom for chunks with correct checksum and highest generation number.

When writing, increment the generation number and write after the last valid chunk and start from the beginning when reaching the end.

Very bouncy power switch can cause eeprom corruption

If the power is switched on and off rapidly, the contents of the EEPROM will often get corrupted. Instead of playing the startup beep of 440 Hz, a buzz is heard and no keystrokes will do anything. Remove power and apply it again, now I get a beep code indicating that the tone length setting is corrupt. This corresponds to eeprom[2]. Occasionally some other location gets corrupted.

Reorder the resistor ladder sequence

In the hardware, the 2600 key appears above the 2 key. However, when I wired up the prototype on perfboard, I put the 2600 key after the hash key in the resistor ladder. That was an accident. I should have placed the 2600 key at the top of the resistor ladder. However, I'm stuck with the configuration in getkey() while I'm still using the prototype. Once I fix the problems with tones not being recognized, I should be able to make some PCBs and retire the prototype.

Stored power-up mode lasts only a few minutes

When the startup mode is set by holding 2600 on power-up and selecting the desired mode, that is supposed to be saved in EEPROM. If I turn off the unit and back on, it sticks. But if I let the unit sit without power for a couple minutes, the setting is lost.

Tone quality

The quality of the DTMF tones is a bit troublesome. I used multimon (https://sourceforge.net/projects/multimon) sampling from my laptop's build in microphone to check the tones. When a tone is played once, it is often detected twice or thrice. This doesn't happen if I play tones from a Radio Shack #43-139 pocket dialer. The problems happen more often with 7, 8, 9, *, 0, and #.

I tried an Android DTMF decoder app called "DTMF Decoder". They all stink to varying degrees. This had problems decoding digits from the third column. Again, no problems with the Radio Shack pocket dialer.

I need to get this thing on an oscilloscope to get a better idea of what's going on.

Possible culprits:

  1. The low-pass filter after the output pin is inadequate, perhaps wrong corner frequency.
  2. 7-bit resolution isn't good enough. 8-bit should then be good enough. Then I'd have to output on two pins and mix on the board.

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.