Programming arduino with other programs

I was interested on programming my arduino with other languages like BASIC or other langauges. If someone could tell me what other programs can I use?

Try a search in this forum. Your options are very limited.
Do you want to use a different language because you are familiar with it or for some other reason ?

Any language you want, as long as you end up with a .hex file that you can tell AVRDUDE to upload into the board.
The examples in the '328P and other Atmel data sheets are all written in assembly language or C.
C++ is not that hard to learn, the IDE I think does a pretty good job of making it seem like fancy BASIC.

In theory you can use any language as long as you roll your own compiler :wink:

BASCOM ? - Using Bascom AVR for Arduino board - YouTube -

I´m learning BASIC for programing AVR chips on school, and I was interested on learning Java too.

To paraphrase Henry Ford, you can use any language you want, as long as you want to use C++.

faurek:
I´m learning BASIC for programing AVR chips on school, and I was interested on learning Java too.

Let me give you an analogy ...

Let's say you are planning to visit Russia, and you don't speak Russian. It would be logical to learn Russian, right? But a friend says "why not learn Greek? - some people in Russia speak Greek". Now you could do that, and it would work in a limited sort of way. But learning Russian is smarter, yes?

The fact is that 99% (if not 99.9%) of programs for the Arduino are in C++. That isn't a particularly hard language to learn. Almost all of the libraries, example code, projects, etc. are in C++. That is the "native" programming environment. Yes, I know you can turn Basic into .hex code if you find a compiler, but where would that be?

If you choose to go down the Basic route, you have abandoned most of the examples, help, libraries, etc. that you will get if you stick to the language used by the Arduino IDE. Even the examples in the Atmel datasheet are in C (and machine code).

It might be worth checking out Bitlash: http://bitlash.net

Bitlash is an interpreter and command shell for a tiny language that runs entirely on Arduino. It's my take on what a modern beginner's language would look like on a '328-class machine.

Bitlash is easy to learn and teaches good stepping-stone habits for the C++ environment. You can extend the language by defining functions from the command line, or by integrating Bitlash into your sketch and exposing your C functions to the Bitlash language.

Code and documentation at http://bitlash.net

-br

It might be worth checking out Bitlash: http://bitlash.net

Bitlash is an interpreter and command shell for a tiny language that runs entirely on Arduino. It's my take on what a modern beginner's language would look like on a '328-class machine.

Bitlash is easy to learn and teaches good stepping-stone habits for the C++ environment. You can extend the language by defining functions from the command line, or by integrating Bitlash into your sketch and exposing your C functions to the Bitlash language.

Code and documentation at http://bitlash.net

-br

I know C++, it was the first thing I learned, but I wanted to use BASIC or JAVA.

Thanks everybody for the answers.

faurek:
I´m learning BASIC for programing AVR chips on school, and I was interested on learning Java too.

Does the school provide or sell BASIC software/IDE/system to program AVR? Because if that's what the school wants then do it!

If they don't then why torture yourself? Inflicting BASIC on anyone is torture even if the UN doesn't recognize the fact.

I don't agree about BASIC being torture if it is used for the purpose for which it was intended. The clue is in its name, ie it's for __B__eginners. The mistake is in using it for serious programming.

We are learning BASIC to program microcontrollers, but it would be good if I could use BASIC to program arduino, so I could practice BASIC.
We are using BASCOM-AVR, but BASCOM cant be used for arduinos I think.

Is http://arduino.cc/forum/index.php/topic,137493.0.html any help ?

faurek:
We are learning BASIC to program microcontrollers, but it would be good if I could use BASIC to program arduino, so I could practice BASIC.
We are using BASCOM-AVR, but BASCOM cant be used for arduinos I think.

If you want to practice basic, practice basic. Use visual studio, or write some VBA in Excel. Trying to find a way to use it with the Arduino seems like a lot of effort for little reward. If you really want to use basic with a microcontroller, look at the netduino - it's focus is C#, but I wonder if VB.net would be usable too.

but I wonder if VB.net would be usable too.

No.

But, PICs are programmed using Basic, so head down the road and get one or two of them. When you find yourself frustrated by all you can't do, and are ready for a real language and processor, come on back.

hi WildBill,

it is possible to program Arduino with Bascom.
I am 'translating' the C programms in to Bascom programms.
look at https://sites.google.com/site/bpluswestland/calendar/arduino-goes-bascom
there you can read how to install the stuff and download free Bascom.
you find also some samples of Bascom for arduino.
there ar more programms, i must upload them.

greetings, Dré Jansen

Picaxe products are very inexpensive microcontroller chips and modules that you program in Basic and they have a free IDE and good forum support.

http://www.picaxe.com/What-Is-PICAXE

Lefty