I still don't know about the PS2 keyboard and LCD on the Tiny85, but I'm just wish-hoping it will fit and work. Since nothing else will run on the thing it should be good to go. Them this board can be larger while the actual target will be very very small so it could fit on top of a mini-car or something like this:
And please, no, I can't teach C and use the Arduino IDE, as those kids can't afford computers and I can't afford to buy computers for the class, as this is mostly a hobby/charity thing for now.
Ah, I already noticed that I will be using the SoftwareSerial library to handle the UART. Now I hope that there will still be room for the PS2 code. From what I could see the PS2 code works with interrupts, have to check how many we got on the ATtiny85...
Actually, all in all I think I will stick with the ATmega8 for both devices. The advantage is that I could use the direct LCD mode without an extra shift-chip, and also there's the Hardware Serial (UART) ports to talk to each other, much nicer.
So I'm ordering some SMD ATmega8 and conversion boards to make some tests. I plan on testing things soon.
The challenge will be update the Arduino code so it uses less RAM freeing more RAM for the Basic. But since the EEPROM has only 512 bytes, there's not much need for more than that anyway, which I doubt I would get in any event. The ATmega8 has only 1K of RAM, and currently TinyBasic uses around 640 bytes, so if I could drop to 512 bytes or so, it would be perfect.
This will be used for basic stuff, so 512 bytes should be enough. And we could always add Macros and new Instructions for things making the BASIC code even smaller. We will see...
Actually, all in all I think I will stick with the ATmega8 for both devices. The advantage is that I could use the direct LCD mode without an extra shift-chip, and also there's the Hardware Serial (UART) ports to talk to each other, much nicer.
What do you think about using an ATtiny2313 instead of the ATtiny85?
But I met an old guy around here that is an expert and he's retired, so he may help me out, at least I'm hoping so. He has an electronics shop in his country house, so I'm sure he got some nice SMD tools.
Thanks for the idea, but sadly, since I'm in Brazil, Mouser charges $40 for transportation. So, if I buy 10 units, the total bill is $70, since its over $50, and its from a company, I pay 100% custom taxes on top, for a total of $ 140 USD for 10 chips alone.
Also, I want to keep 2 boards. One for the Terminal alone, and another for robotics, so it could be as small as possible, to fit in a mini rc car. 8)
Wow, that's expensive. If you get it working though maybe I'll modify what you have. I was thinking, if I can find an old big keyboard with some extra space, of mounting the lcd and 328p in the keyboard case. Then you'd have a tinyBasic laptop
I do have 6x ATmega328, so I may try those for the target board, and still use the ATmega8 for the Terminal board.
The advantage is that I still save a few bucks on the Terminal board while having a good target board. I wonder if I could use the TinyBasic at 20Mhz, as I got some 20Mhz crystals too.
I just need to learn how to solder SMD chips now, a friend already gave me great tips.
Just saw your post today. I've made a serial panel, which does what you want on a multi-tap keypad, instead of PS/2 keyboard:
The panel is like a terminal. It wraps texts and automatically scrolls and accepts ASCII or ANSI commands such as \f for clear screen \b for back space etc.
I am making a back pack version of it (no integrated keypad) and could include capabilities to connect to a PS/2 keyboard. Any interest?