Offline
Newbie
Karma: 0
Posts: 5
|
 |
« on: September 21, 2011, 09:01:24 am » |
Hey, I've been thinking about this and the more I think about it, the more I think I can actually do this. My idea is basically this: Make a functional computer out of an Arduino Uno microcontroller. My only goal for this computer is the ability to edit and execute BASIC programs. That's all. I only want it for the programming, as that's just about the only thing I'm interested in right now  So the way I see it, I'll need three main hardware components: 1) some form of a display (VGA screen or something), 2) some way to register keyboard input, and 3) some way to store data to external memory. Does anyone know of any way to do this? I kind of know of some ways to display to a screen, but I don't know a good API/hardware component to register keyboard input or to store external memory. I'm going to need a lot of help on this. Can anyone help me out and offer ideas and useful tips and suggestions for good hardware / a good open source library, or two, or three, or ten?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: September 21, 2011, 09:06:13 am » |
Make a functional computer out of an Arduino Uno microcontroller. I can't help but point out that the Uno is a functional computer - why would you want to cripple it with BASIC?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #2 on: September 21, 2011, 09:15:48 am » |
Basically what I want is the ability to program without having to write code on a computer first, compile it, and then send it to the Arduino Uno. What I want is the ability to type in programs in my room, where's there's no "real" computer. Pretty much I want to build my own computer based on the Arduino Uno but being able to program directly onto the Arduino. Does that make sense? Also, I didn't necessarily mean a direct port of BASIC. I would write my own version, and make it as powerful and as fast as possible. I don't want to program on a PC. I want to program in a simple language for a simple machine. My reason? check out the following link, "Why Johnny Can't Code" : http://www.salon.com/technology/feature/2006/09/14/basic/index.html
|
|
|
|
« Last Edit: September 21, 2011, 09:28:37 am by buttsfredkin »
|
Logged
|
|
|
|
|
West palm beach, FL
Offline
Sr. Member
Karma: 0
Posts: 264
|
 |
« Reply #3 on: September 21, 2011, 09:29:24 am » |
you could probably make something where you could write code and store it on to some extranal mem but do you want the arduino to serve as a compiler? because that i am assuming would be difficult
|
|
|
|
|
Logged
|
I could print the Arduino logo on a box of cereal and sell it as "Arduin-O's"
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #4 on: September 21, 2011, 09:30:59 am » |
I assumed it was just an interpreter - the PDP-8 managed to run the FOCAL interpreter (and store the program) in 4k 12-bit words.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #5 on: September 21, 2011, 09:39:12 am » |
Yeah, compiling would be too challenging for me, so I was going to go with an interpreted language.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #6 on: September 21, 2011, 09:56:11 am » |
How would I go about modifying a PS/2 keyboard serial input thingy to go into an Arduino Uno?
|
|
|
|
|
Logged
|
|
|
|
|
Western New York, USA
Offline
Faraday Member
Karma: 17
Posts: 3460
|
 |
« Reply #7 on: September 21, 2011, 05:30:41 pm » |
I think he wants something like a Timex/Sinclair ZX80.
Don
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Online
Faraday Member
Karma: 35
Posts: 5915
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #8 on: September 21, 2011, 06:29:44 pm » |
OP, why not using a mega with external 128KB RAM for a starter? https://shop.ruggedcircuits.com/index.php?main_page=product_info&cPath=4&products_id=41For displays, use a character display or dot matrix display. I've designed a serial LCD keypad panel. You can directly serial.print on it and it understands \n and \t plus a lot more. It runs multi-tap so needs no external keyboard  Would be nice terminal for a basic computer.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 37
Posts: 974
Get Bitlash: http://bitlash.net
|
 |
« Reply #9 on: September 21, 2011, 06:50:10 pm » |
The Bitlash interpreter has been used in such standalone computer projects. See http://bitlash.net for downloads and doc. PS-2 in and TellyMate out and you're basically done. I cut my teeth on BASIC at Dartmouth back in the day. While Bitlash is not BASIC, it is a simple language that is intended to be a stepping stone to procedural C/C++ as supported by the IDE. There's a page on the playground about Bitlash here: http://arduino.cc/playground/Code/BitlashTry it, you may like it. -br http://bitlash.net
|
|
|
|
« Last Edit: September 21, 2011, 06:53:42 pm by billroy »
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #10 on: September 21, 2011, 06:51:42 pm » |
2K of RAM is too few for BASIC. Typical 8-bit BASIC-computer of 80's was a 16K ROM + 16-48K RAM machine. We are waiting for Arduino Due =) Even maybe some floppy drive =)))
|
|
|
|
« Last Edit: September 21, 2011, 06:53:49 pm by Vanyamba »
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 37
Posts: 974
Get Bitlash: http://bitlash.net
|
 |
« Reply #11 on: September 21, 2011, 06:55:08 pm » |
You can get a surprising amount done in 2k of Bitlash. And then there is the run-script-from-sd-card support.  -br http://bitlash.net
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #13 on: September 21, 2011, 07:10:42 pm » |
You can get a surprising amount done in 2k of Bitlash.
Impressive syntax but I've made calculation for BASIC - 10-15 lines of code, it's too few. "Make your duino to BASIC-blinker" =)
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #14 on: September 21, 2011, 09:54:51 pm » |
Thanks to everyone here except for KE7GKP. Come on KE7GKP, if you don't have anything nice to say, you shouldn't say anything at all. And no offense KE7GKP, but your post was pretty much useless. I also don't really like how much you're discouraging programming and hardware projects, what's up with that? </rant>
Anyways, billroy, thanks for your info, it was really good. Bitlash looks like something I'm probably going to use and I think I might take your other suggestions as well, after some investigation.
|
|
|
|
|
Logged
|
|
|
|
|
|