Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 12:14 09 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 : A simple BASIC from Microsoft

Author Message
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 03:28pm 03 Aug 2017
Copy link to clipboard 
Print this post

There is still a Basic available from Microsoft.
It is a simple version but with pretty good specs.
Have a look here: http://smallbasic.com/

It has some interesting graphical commands that might inspire some for the uMite.Edited by MicroBlocks 2017-08-05
Microblocks. Build with logic.
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 08:35pm 03 Aug 2017
Copy link to clipboard 
Print this post

For DOS?
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 02:25am 04 Aug 2017
Copy link to clipboard 
Print this post

  MicroBlocks said   There is still a Basic available from Microsoft. It is a simple version but with pretty good specs.
Have a look here: http://smallbasic.com/
It has some interesting graphical commands that might inspire some for the uMite.

There is also another SmallBasic which is multi-platform DOS, LINUX, ANDROID etc. and with pretty good specs. Check it out here . It's till being developed and has its own DOS IDE and graphics capabilities.

Greg
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1986
Posted: 04:05am 04 Aug 2017
Copy link to clipboard 
Print this post

oooh! dewpoint calculator. cheers!
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 03:13am 05 Aug 2017
Copy link to clipboard 
Print this post

Yes, saw that. Can the wet/dry 'bulb' temp sensors be DS18B20's for dewpoint, or do they need to be Hg or alcohol bulbs? I assume the former otherwise it'd be tricky to automate.

For those who haven't looked at it, the program library folder list here has quite a few useful things that could be translated to MMBasic pretty easily - check out e.g. the MATHEMATICS and PHYSICS folders.

I notice also that the NETWORK folder has a program called 'Virgin_Happy_Hour". Now don't anyone get too excited because it's not quite what you think!

Greg
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1986
Posted: 05:45am 05 Aug 2017
Copy link to clipboard 
Print this post

I am guessing temperature is temperature.

I have seen a wet bulb thingy using typeK thermocouples (for A/C engineers) so I think you could use 1820's as well. So long as it is all insulated from the wet... The wick has to be cotton apparently (make-up removal pads will do) and it seems so long as it is as wet as it can be, away from the actual source of the water (6 inches seems enough) and not in a draft I reckon you'll be OK... I'll be able to report back in a while - when I clear the current projects from my desk

One thing I notice, lots of the program listings have copyrights so beware
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:05am 05 Aug 2017
Copy link to clipboard 
Print this post

Well that went off topic quick.

The reason i am interested in it is that you can add extensions to it.
One of the things i am going to try is to make a USB HID device and control it with MS Small Basic. If that works i might try something with wifi/bluetooth to make a 'control' screen for a few gadgets.
Some arduino/micromites that send info to be displayed on a PC.
Interesting enough to try it out.
As this basic also has an pretty good editor with intellisense, developing something would be pretty comfortable.
I am used to Visual Studio and intellisense is one of those things i really miss when programming something else. It saves so much time and prevents typos.

Distributing a program is also easy. You just "Publish" it and it will be saved to the 'web' so that others can use it too.
Another interesting option i need to try out is the 'Graduate' option. This will save the program as a VB.Net project which opens up a lot of other possibilities.
All in all. pretty impressed by it, and it is really really simple to use. So a great start for beginner programmers.

Microblocks. Build with logic.
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1986
Posted: 09:31am 05 Aug 2017
Copy link to clipboard 
Print this post

  MicroBlocks said   Well that went off topic quick.

In a single page! A new low

When you say "control it" what do you mean exactly? If it is a HID, it will be a device on the PC so I am wondering what's to control? (just curious)
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 11:39am 05 Aug 2017
Copy link to clipboard 
Print this post

Off topic again, but you can calculate dewpoint temp with a DHT22 humidity sensor.
HUMIDITY:
HUMID 48,temp2,RH
Return

DEW:
B = (Log(RH/100)+((17.27*Temp2)/(237.3+Temp2)))/17.27
D = (237.3*B)/(1-B)
D = Cint(D)
DewPoint$=Str$(D)

"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1986
Posted: 12:55pm 05 Aug 2017
Copy link to clipboard 
Print this post

bah! topics are for girls

Thanks for this - Are you OK if I put it in the library (you'll be credited)
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 03:16pm 05 Aug 2017
Copy link to clipboard 
Print this post

No problem
Paul.
edit.
For our friends in the USA we can even do HUMIDEX

HEATINDEX:
'heat index equation using ambient dry bulb temperature and relative humidity
' T=Temp
' T = (T*9/5)+32
' c1 = -42.379
' c2 = 2.04901523
' c3 = 10.14333127
' c4 = -0.22475541
' c5 = -6.83783 * 10^-3
' c6 = -5.481717 * 10^-2
' c7 = 1.22874 * 10^-3
' c8 = 8.5282 * 10^-4
' c9 = -1.99 * 10^-6
' HI1 = c1+(c2*T)+(c3*RH)+(c4*T*RH)+(c5*T^2)
' HI2 = (c6*RH^2)+(C7*T^2*RH)+(C8*T*RH^2)+(C9*T^2*RH^2)
' Index = HI1 + HI2
' Index = (Index-32)*5/9
' Index = Cint(Index)
' FeelsLike$=Str$(Index)


This is a Celsius version for Fahrenheit leave out the conversions.

Paul.
Edited by palcal 2017-08-07
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1328
Posted: 08:32pm 05 Aug 2017
Copy link to clipboard 
Print this post

  MicroBlocks said   Well that went off topic quick. ...

Oops, sorry about that Jean.

I had actually been using the SmallBasic I linked to, several years ago, just prior to the original Maximite and Geoff's MMBasic launch; I didn't know there was an MS version. When Geoff came out with his original DOS MMBasic version I swapped to that so as not to confuse myself (happens easily). So when I saw your Microsoft SmallBasic link I was a bit surprised, and thought I'd mention it.

Luckily CaptainB has let me off the hook - I'm not a girl.

Greg
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:51am 08 Aug 2017
Copy link to clipboard 
Print this post

Well what do you know, they just announced a new version:
https://blogs.msdn.microsoft.com/smallbasic/2017/08/07/small-basic-1-3-available-now/
My worries about it being abandon ware are set to rest. :)

Microblocks. Build with logic.
 
Print this page


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

© JAQ Software 2024