Picaxe project

HAZELEB

Member
Hi all, I would like to use a picaxe as the hart of a project, I want to store a list of about 2000 plants in an external memory chip say a 24lc256 I want to recall numerous individual plants to an lcd and add some numbers then save to the internal memory and then send this to a pc at a later date as an excel file possibly using the Eltimer software any comments would be appreciated.

Regards.
Ebb.
 

MartinM57

Moderator
Hmmm...I think you have a big challenge there!

PICAXEs have no concept of strings, databases, records, Excel etc etc - they are 8 bit microcontrollers that are easy to program and excellent at reading analogue and digital inputs, controlling LEDs, motors, sending and receiving data on RS232 links etc

I'm sure you could 'bend' a PICAXE to do what you want, but it's the wrong horse for your course. Buy a second hand PDA from eBay ...

All IMHO, of course!
 

HAZELEB

Member
Hi thanks for your reply Martin I have a lot to learn, I wish my brain was a lot younger so I could understand all the information you and the other contributors put on this site many thanks keep it up.

Regards,

Ebb.
 

hippy

Ex-Staff (retired)
It should be reasonably simple to create a database program like this, but that doesn't mean there isn't a lot of effort involved. There are four parts to it -

Designing the database. Working out how your data is stored in the EEPROM and how it will be accessed. A rough guesstimate, with a 2x16 LCD x 2000 plants that's a 64KB/512Kbit EEPROM. Holding less data means a smaller EEPROM.

Initialising the database. A PC database sent serially to a program dedicated to moving that into EEPROM probably.

Updating the database on your travels. A program to get a data record from the EEPROM, put it to the LCD, update any related numerical data, and put that back into EEPROM.

Updating the PC. Running through all the records and sending the data to the PC.

Each is relatively straight forward in itself and can be made more functional as time goes by.

The two issues you may need to think on is how you are going to do the PC side of things, to create the database and get the data into the EEPROM. And, how to efficiently update EEPROM without having to re-write whole blocks of data each time. I may be overly worrying about that. Two databases might be an idea; one with plant names, the other with updatable data. I guess KEYIN could be used so you could create the database on the PICAXE using a PC keyboard and not have to use a PC there at all.

On the hardware side you'll need a fairly battery efficient design, perhaps using rechargables, and a mechanism to warn of battery low and avoid corrupting EEPROM.

A PDA might be the better course; you can get an old Palm Pilot with nice LCD, graphical interface and touch screen for the same price as an 18X chip or a 2x16 LCD, but you would still have all the design and programming issues you'd have with a PICAXE.

Psion Organisers may be a good bet, because they have OPL, a programming language which is also BASIC-like, built-in and handles databases like this. I have a very old Psion II which I use as a telephone number book. It ran for three years on one PP3 battery and kept almost second-accurate time long term !
 
Top