I know you 1's and 0's guys are going to throw a bunch of stuff over my head but...
Is there anyway to pre-program variables into an EEPROM (directly from the computer) to be read by the Picaxe later? --Let's say I want to stick in a string of variables that will sorta translate into a map that the picaxe will later follow. Right now the only experience I have had with EEPROM's, as you know, is sticking data into them from the Picaxe. Any thoughts?
Looking for something like this?
I’ve been meaning to get me one of these, to fill up my 32KB eeproms without reloading a 4K program in the picaxe 9 times.
http://www.robot-electronics.co.uk/acatalog/USB_I2C.html
There will probably be some programming to do on the PC, but with this you could pre-program the eeproms on a breadboard.
However I think these things are a bit expensive, so I’m working on a program for the picaxe (28X1) to use the serial programming cable and a terminal program (like hyperterm) The problem is, most of the stuff you want to get in that eeprom is in a pretty bot-specific format. So what it comes down to is that I probably end up writing some sort of Hex-editor in picaxe basic.
Thanks MintVelt
In actuality, I really only need to input a series of numbers into acending addresses. However, I am quite interested in any information in terms of running more of my robot’s brain funtions through the “host computer”. I like this “terminal program” idea, to be honest untill now I didn’t even know that term. Even just that little bit of info does wonders for my to be able to start a search for more info, thanks. The bottom line: Please keep me/us apprised of any info you have in terms of jzinking info and control from PC to bot!
Wicked cool, thanks again.
You can use Ponyprog for
You can use Ponyprog for programming I2C Chips or other things with your PC. It is a program for Windows/Linux.
But you need a PC with parallel port or serial port and a simple hardware interface for using this program. USB is not supported. I’ve been using Ponyprog for a long time for programming AVR chips.
The program & schematics can be found here:
http://www.lancos.com/prog.html
Easy and Cheap
Dude-a-rooney. You’re pretty handy with a soldering iron. Here’s a programmer which you can build for about $5. Here’s some freeware software to drive it. All you need is a PC with a serial port. This is a bit-bang solution, so USB/serial adapters usually don’t work.
This device will even program PICs. Be careful with that, because that means it will over-write your PicAxe bootloader, so the PIC can then only be programmed in assembler. It’s time you guys learned assembler anyways.
Serial to eeprom
I did some experimenting with Edward, to enter gestures and LCD messages in the ROM. I extracted the code from Edwards program to run on its own and it works a bit akward, but its OK.
Basicly what I do is this:
I put Edward in terminal mode, connect the serial programming cable and open hyperterm. After the first keystroke you see a welcome message and you can start typing lines with comma separated numbers or plain text finish with <ENTER>.
A line starts with a mode character (a=alphanumeric, n=numeric decimal and d=dump mem to terminal) followed by an address followed by the data. in alpha mode you just type away (using \n for newlines) in numeric mode you enter numbers in decimal format.
It just starts at the address you typed and moves ahead in the eeprom until you hit enter and you start a new line.
The d-mode just prints 256 bytes in decimal format in a 16x16 block on the terminal screen.
I cant get it to work properly with pasting textfiles without extreme character delays (like 60ms), but for changing some texts and moves without re-uploading the whole program its rather handy.
Anyway. If anyone is interested, let me know and I’ll post the code somewhere.
calculon is interested
calculon is interested
allready posted
I posted the code some time ago in a walkthrough on picaxe memory tricks.