Thank you for using Makeblock Neuron! Neuron is a set of durable electronic building blocks. It is easy to get started and flexible to use, making it excellent for learning and creating.
Neuron blocks have two modes: Online mode and Offline mode. When a chain of Neuron blocks is not connects to an iPad or a PC, it stays in the Offline Mode. In this mode, Neuron Blocks will behave according to the data it received from the previous block. For example, if a LED light follows a button, it will light up when someone presses the button.
When a chain of Neuron block connects to an iPad or PC, either with Bluetooth or Wifi, it will act in the Online Mode. Now you can design how Neuron blocks interact with each other with the Neuron App in the iPad or PC. You may also introduce logic and math operations to explore more possibilities.
This document will introduce Makeblock Neuron App on iPad. And how it helps making creative work with Neuron Blocks.
Connect with Bluetooth
The first thing to do is to connect Neuron Blocks to the iPad.
To connect with Bluetooth, you need a Bluetooth Block connected to the Power Block or an USB cable. After this, open the App and click the Bluetooth icon. Now you may hold your iPad and close up to the Bluetooth Block. If this does not work, tap “Pick from a List” button and tap the device name from the list. The name should start with “Neuron_” and followed by a unique number.
Connect with Wifi
To connect with Wifi, you need a Wifi Block connected to the Power Block or USB Cable. Then click the Wifi icon and follow the prompt on the screen.
A tour of the Interface
Using Neuron Electronic Blocks
When a Neuron Electronic Block adds to the chain, the block will pop up on the top of the screen. Then you may drag it down to the canvas.
The node often comes with outputs or inputs. You can draw a line between the output of a node and the input of another node to create connections. For example, if a button links to a LED light, it means the button “controls “the LED light. Pressing the button will turn on the light.
Behind the scene, Neuron App uses a “flow-based programming” model. This means the status of the button will be send to the LED Light each time it updates. The status of a node could be yes-or-no, numbers, or complex concepts like colors.
When you tap on some of the Neuron Block nodes, a Config Panel will popup. this will allow you change some properties like the color of the light, or the pattern of the light strip.
Some Neuron Blocks have “companion nodes”. For example, the LED Light node has a “color” companion node, which will appear in the bottom if you tap the LED Light node. You can drag the companion node up when it appears. You can use it to make LED lights show different colors under different conditions.
On the bottom of the screen, you will see a range of “Logic Nodes” organized in different tabs. They can bring your level of creation beyond simple “push a button and turn on the lights”. Like Neuron Block, Logic Nodes also have inputs, outputs, and sometimes config panels.
Here is a list of some basic Logic Nodes:
Compare Node will output “yes” when the input meet the condition set on the config panel. Tap on the dropdown or the number to change the comparison condition.
Number Node will output the number set on the config panel, if the input is “yes”. It is useful when setting the speed of a motor of the brightness of a light.
Compute Node makes arithmetic operations like add, substract, multiply, and divide.
Interval Node flips between “yes” and “no” at the interval set on the config panel. You can use it to make a LED blink or create a periodical operation.
NOT, AND and OR nodes runs boolean operation on every input and outputs yes-or-no value.
Toggle Node flips between “yes” and “no” whenever the input changes from “no” to “yes”.
Counter Node increase the number by 1 each time the input flips from “no” to “yes” and put the number through the output. It will reset the number to zero every time somebody presses the “reset” button, or the “reset” input receives a “yes”.
In the “Control” tab of the bottom panel, you will find nodes like “Button” or “Label”. They are virtual control which you can interact in the iPad’s screen.
Besides, on the top right corner, there is a Controller Button which will bring up a controller. It turns the iPad to a remote controller. Using it you can control your program at free without messing around with nodes and lines.
When things do not come up as expected, there are some basic tips to find the cause of the problem.
First, you can see a number or a symbol on the outputs of nodes. From this you can check the actual value it is outputting, like the readings of sensors or the result of logics.
Second, the Button Node in the Control shelf is a useful tool for testing logic out. You can use virtual buttons to see results of logic graphs without using real hardware.
Finally, as a general principle, testing ideas in smaller scales is always a good approach. If a big system goes wrong, try isolating the failed part by removing components. If you find the minimal case where the problem preserves, you are closer in finding the solution.
Run on Wifi Blocks
Unlike the Bluetooth Block, the Wifi Block can run programs without iPads. After you finished linking nodes, click the “wifi” icon and “upload” to run programs in the Wifi Block. You can stop or update the program every time you connect to a Wifi Block.