Pages: [1] 2   Go Down
Author Topic: Programming arduino with other programs  (Read 1206 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4267
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27145
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13742
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 BASCOM ? - -
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 617
Posts: 49463
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 485
Posts: 18816
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged


0
Offline Offline
God Member
*****
Karma: 39
Posts: 988
Get Bitlash: http://bitlash.net
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 98
Posts: 4809
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4267
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4267
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

New Jersey
Offline Offline
Faraday Member
**
Karma: 67
Posts: 3702
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 617
Posts: 49463
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1] 2   Go Up
Jump to: