Small Basic – Artificial Neuron

I wrote a program about simple artificial neuron (PQK191).  This neuron has two inputs x1, x2 and one output y.  And the output can be shown as: y = f(x1*w1 + x2*w2 + b). While, w1, w2 are weights, b is bias and f() is unit step function. f(x) = 1 (x ≧ 0) f(x)…

5

Small Basic – Kinect Motion Recorder

Screen shot of a program Motion Recorder 0.5
Screen shot of a program Motion Recorder 0.5

I wrote a new program – Motion Recorder (NVH911).  This program uses Kinect sensor to record motion capture data into a text box. Push [REC] button to start recording.  Push [■] button to stop.  Push [▶] button to replay. Have fun!  

5

Happy New Year with Small Basic

Happy New Year! Today I will write about 2017 new year Small Basic challenges. The first one is December 31st – Special Challenge of the Month.  Now we have three programs for this challenge.  by Tryhest  by YLed  by Nonki The second one is January 2017 – challenge of the Month – Meteor shower Quadrantids.  I…

1

Algorithm Basics in Small Basic

Algorithm is combinations of code patterns.  Today, I’d like to introduce three basic code patterns.  I also wrote a sample program for this blog: LMR321. Sequence Sequence of statements is the simplest pattern of code.  But sometimes the order of statements becomes very important. Following two code blocks show the different results. Turtle.Move(100)  ‘ move…

5

Small Basic – Think about Textbox UX

Let’s think about textbox UI (user interface) or UX (user experience). Simple way to use textbox in Small Basic is using button to get text from the textbox.  The sample program ID is MDP504. By the way, pushing button is bothersome, isn’t it?  The next version is using Controls.TextTyped event to get the text.  The program…

1

Small Basic – November Community Challenges: Guitar Chords, Drawing Freehand, & Subtractive Colors

Building off the November Challenges from LitDev: Small Basic Challenges of the Month (November 2016): Scrolling Text Banner, SB Logo, Turtle Mascot, Tic Tac Toe, and Checkers! We have challenges from the Community members as well!   Guitar chords https://social.msdn.microsoft.com/Forums/en-US/d57ffbe0-2698-4ee8-b813-71020efcf2b0/november-challenge-guitar-chords?forum=smallbasic Here is my suggestion for one of the November Challenges. To draw something like this: if…

1

Learn Abstract and Concrete with Small Basic

I wrote some programs for learning abstract and concrete.  At first I made a subroutine Average().  This routine calculates (a + b) / 2.  The concept average is a special (concrete) case of a wider concept.  Secondly, I made a subroutine Intermediate().  The concept of this routine is wider and more abstract than Average().  Intermediate()…

2

Draw a Pumpkin with Small Basic

Have you read a forum thread October Challenge – Special 31st – Draw a Pumpkin?  Add your pumpkin in the thread! By Tryhest: By YLed: By Nonki:

2

Small Basic – Arduino Sample Programs

This March LitDev introduced about Arduino on this blog.  Today, I’d like to introduce my Small Basic programs using Arduino. The first one is the IR Turtle controller (HLT038). The circuit is like (GZN399): The Arduino program irdemo.ino is from osoyoo.com.  More details about this program are described here. The second one is a thermometer…

8