Hello everyone, I have an Arduino uno and I would like to find out how to run a Forth system on it, I have heard a little about amforth and swiftx by FORTH inc. but i am not sure which is better/easier to implement, i would really like some advice on what I need and how to actually get forth onto my arduino. Please help :)
You might enjoy this version:
AMForth uses some fancy footwork to store new user-defined words in flash, in a way that is not compatible with the Arduino bootloader. So you can run AMForth instead of Arduino SW on Arduino HW, but not as an arduino sketch. That means you need an ISP programmer to load AMForth onto your Arduino in the first place...
Thanks for your replies guys, I think I would like something which contains a greater word list of Forth which is why i'm not so keen on the finf. I think amforth sounds great from the website, but i can't find any step by step instructions on actually getting it on to my arduino, I suppose I need to invest in an ISP programmer first, is there one you could recommed? sorry I am a noob :fearful:
The USBtinyISP is an inexpensive and basic ISP programmer. A full kit with a case will cost $22 but if you don't need a case on it you can get a knock-off from China for under $20.
i can't find any step by step instructions on actually getting [AMForth] on to my arduino
Yeah; it's pretty awful. It seems to mostly be set up as a mechanism for putting the minimal forth infrastructure necessary for support your (already written) forth program onto a micro, rather than as a way to install a usably compete "learning" system.
There's an amforth built for lilypad that I did a while ago here: https://docs.google.com/leaf?id=0B6dMB5dovDUZMzYwMjVjYjctY2YwMy00NzMxLTllZjItZmNlNTkwMjA2YzIz You can probably find some discussion by searching the old forums; I don't recall exactly what makes it "lilypad", how complete/correct it is, or how I built it. (It did inspire me to re-read my Forth book, but ... that wasn't all that encouraging. Forth is such a 1970's style language...)
So at Maker Faire, the Silicon Valley Forth Interest Group was advertising a Forth implementation for Arduino. I didn't actually talk to them (I had my wife with me, and she has limits!), but I remembered to look them up when I got home.
I believe they are talking about ceForth 328 This is apparently an alternative to amforth, and is a "teaser" version of Forth that will run (with some limitations) as an Arduino sketch, so that you can try it out. There is also 328eForth, which replaces both sketch and bootloader (requires a programmer) that is more full-featured and will write new Forth words to flash.
(Annoying musical website. And I can't figure out exactly when you're supposed to buy the implementation, and when you're allowed to use the free downloadable version. But it sounds promising for people who'd like to experiment with Forth.)
strino: Thanks for your replies guys, I think I would like something which contains a greater word list of Forth which is why i'm not so keen on the finf. I think amforth sounds great from the website, but i can't find any step by step instructions on actually getting it on to my arduino, I suppose I need to invest in an ISP programmer first, is there one you could recommed? sorry I am a noob :fearful:
eforth (http://www.offete.com/328eForth.html) is a very complete and very tightly written Forth, and might be easier to get to work. I have not tried it, and it has a modest license fee. But the authors are well-known in the Forth community.
avrForth is a host-based system that uses gforth as a host: http://krue.net/avrforth/
FORTH, Inc. Also has a demo of SwiftX. This isn't free, but it will be very complete and come with a lot of support.
A web search shows a lot of other projects in various states of repair...