Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:56 19 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Convert Arduino code to Micromite Basic

Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 04:24am 13 Feb 2016
Copy link to clipboard 
Print this post

Is there anyone here that is able to convert Arduino code to MM Basic?
I want to use a BME280 module, there are a couple of example codes/sketches for the Arduino but I can't find any for the Micromite.
And I can't find any examples of MMBasic for the BME280 module.
My knowledge of basic is way too weak to even consider anything myself unfortunately.
 
MM_Wombat
Senior Member

Joined: 12/12/2011
Location: Australia
Posts: 139
Posted: 08:28pm 14 Feb 2016
Copy link to clipboard 
Print this post

@lew247

I could give it a go, but I would have to buy the module first, and wait for it to arrive. I could attempt to write the code, but debugging would be difficult if I didn't have the module. Little Bird Electronics have it for 30 AUD, in Sydney.

I did the same thing for the DMD Panels from freetronics a while back..

Which version of the Micromite would it be for. I have the MM+ from CircuitGizmo.
I also have the Arduino Eleven from Freetronics for comparisons.

MM_WombatEdited by MM_Wombat 2016-02-16
Keep plugging away, it is fun learning
But can be expensive (if you keep blowing things up).

Maximite, ColourMaximite, MM+
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 08:59pm 14 Feb 2016
Copy link to clipboard 
Print this post

In the adafruit datasheet on page 23 there is code that appears to be written in C
(I'm all at sea with C I'm afraid}. Maybe this could be used as a C function, maybe one of the C gurus could answer but you still have to extract the calibration data from the device and I'm sure someone here could do that.
Paul.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 10:02pm 14 Feb 2016
Copy link to clipboard 
Print this post

This Code is in Bascom, a Basic Language for AVR Controllers.
IT should be easy to Converter to mmbasic.




http://www.mikrocontroller.net/attachment/280969/BME280.bas
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2294
Posted: 12:26am 15 Feb 2016
Copy link to clipboard 
Print this post

  MM_Wombat said   debugging would be difficult if I didn't have the module. Little Bird Electronics have it for 30 AUD, in Sydney.
MM_Wombat


try here for a somewhat better price:
http://www.ebay.com/itm/321988583888
(BMP280, less than us$2 including delivery)

http://www.ebay.com/itm/401000227934
(BME280, less than us$6 including delivery)


cheers,
rob :-)
Edited by robert.rozee 2016-02-16
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8605
Posted: 01:21am 15 Feb 2016
Copy link to clipboard 
Print this post

  Quote  Is there anyone here that is able to convert Arduino code to MM Basic?


If you send me the module I'll get it working for you. Send me a PM if interested

 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 03:52am 15 Feb 2016
Copy link to clipboard 
Print this post

Sent you a pm matherp
 
MM_Wombat
Senior Member

Joined: 12/12/2011
Location: Australia
Posts: 139
Posted: 09:12pm 15 Feb 2016
Copy link to clipboard 
Print this post

@lew247

See, someone answers , then all the offers come in. I'm sure Matherp would do a better job than me anyway.

MM_Wombat

Keep plugging away, it is fun learning
But can be expensive (if you keep blowing things up).

Maximite, ColourMaximite, MM+
 
TassieRosco
Newbie

Joined: 17/02/2016
Location: Australia
Posts: 2
Posted: 03:32pm 16 Feb 2016
Copy link to clipboard 
Print this post

I put the BME280.bas BASCOM file through Google Translate for the english speakers. See:

2016-02-17_013037_BME280_en.pdf

  atmega8 said   This Code is in Bascom, a Basic Language for AVR Controllers.
IT should be easy to Converter to mmbasic.




http://www.mikrocontroller.net/attachment/280969/BME280.bas
 
bigfix
Senior Member

Joined: 20/02/2014
Location: Austria
Posts: 124
Posted: 10:48pm 17 Feb 2016
Copy link to clipboard 
Print this post

I just stepped over this guide :

Convert Arduino Code to MPLAB IDE

It explains briefly how to port Arduino code to PIC
I guess it could be useful to try Arduino supported HW on a PIC32 System
It will run standalone - not integrate with MMbasic

I do not speak "C", so cannot judge about it...
- maybe helpful Edited by bigfix 2016-02-19
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024