Go Down

Topic: Programming arduino with other programs (Read 1 time) previous topic - next topic

faurek

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?

UKHeliBob

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 ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

CrossRoads

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.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

robtillaart

In theory you can use any language as long as you roll your own compiler ;)

BASCOM ? - http://www.youtube.com/watch?v=Ppdpp4pqeQc -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

faurek

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

PaulS

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

Nick Gammon


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).
http://www.gammon.com.au/electronics

billroy

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

faurek

Quote
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.

GoForSmoke


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 find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

UKHeliBob

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 Beginners.  The mistake is in using it for serious programming.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

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.

UKHeliBob

Is http://arduino.cc/forum/index.php/topic,137493.0.html any help ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

wildbill


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.

PaulS

Quote
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.

Go Up