Digital odometer with flash/RAM memory for car

Something close that is off the shelf

formatting link

There are other models available for trail motorcycles.

:-P

Reply to
Peter
Loading thread data ...

But at least the abc and others but some of the good stuff onto their websites like

formatting link

Alex

Reply to
Alex Gibson

google piclist

You are not storing a single large number but a series of digits.

Pics and other similar chips are 8 bit so values per register are 0 - 255 or 0 - FF in hex.

So use a register to store each digit (0 - 9).

For a long term solution I'd recommend storing the values into a serial eeprom or other chip on power off. A decent sized cap would give power for long enough to write the latest value.

  1. first step try the pic eprom

  1. serial eeprom/flash chip attached to the pic

  2. sd card - let you store a lot of other info as well

few circuits

formatting link
formatting link
for serial eeprom circuit
formatting link

Doesn't have to be a pic , could use atmel avr or other micro.

Do you know any programming language ?

Dontronics.com sell some cheap pic boards(and avr and others) from olimex.

formatting link
is quite a nice tutorial using asm.

formatting link
examples for the hitech and microchip c compilers for pics.

If you use an 18f or 24f or 30f pic , microchip have c compilers for them.

See 3rd and 2nd last projects on this page

formatting link

Alex

Reply to
Alex Gibson

What a pity about that speckled background, which makes it much harder to read IMHO

Reply to
Gingre

It will depend on the type of flash, however eeprom has a significantly higher endurance than flash memory (several orders of magnitude). I quoted the endurance (write cycle) figure for the flash and eeprom in the PIC micro. The endurance of your memory stick and camera card may be the same, but it also may be less. It is probably anticipated that you won't be writing to this piece of hardware in 10 years time, let alone 27. Micros on the other hand have a tendency to sit in a piece of equipment for a bit longer (20 or so years in some cases).

Since the odometer value is only 3 bytes, it makes more sense to save it into the on-board eeprom in the PIC.

Reply to
swanny

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.