Skip to main content

Posts

Initial experiments with Code Bug Connect

Code Bug has been around for a while, and it is incredibly cute, When it first came, it was a very interesting piece of kit - and it is still is and fun to play with. It spec means it is still a very useful piece of kit. 5x5 Red LED display 2 buttons 6 touch sensitive I/O pads (4 input/output, power and ground) Micro USB socket CR2032 battery holder Expansion port for I2C, SPI and UART Blockly-based online programming interface CodeBug emulator for checking code before downloading In 2020 Code Bug launched and successfully funded a Kickstarter campaign ( https://www.kickstarter.com/projects/codebug/codebug-connect-cute-colourful-and-programmable-iot-wearable ) for a new version the Code Bug - CodeBug Connect with a serious upgrade.(and the name Connect is highly appropriate with USB tethering and Wifi capability in this version. The technical specification (taken from their site https://www.kickstarter.com/projects/codebug/codebug-connect-cute-colourful-and-programmable-iot-wearable ...

Make yourself a virtual gallery

This short post builds on the previous posts (below), unless you have used A-Frame before please have a look at these: WebVR playtime 1: Basics of setting up, images and rotating blocks. WebVR playtime 2: video, 360 video and objects Using Glitch  ( https://glitch.com/ ) as a web development and hosting tool. We are going to create the start of a virtual Gallery, essentially 4 rectangles that images can be posted on, a cylinder that also images can be wrapped around and the floor and the sky. To do it following is posted into the index.hml <html>  <head>     <script src="https://aframe.io/releases/1.2.0/aframe.min.js">   </script>  </head>  <body>      <a-scene>          <a-box position="-1 2 -1"  rotation="0 -30 0" color="white" depth="2"  height="4" width="0.5"  src="https://cdn.glitch.com/febf6408-3c33-4608-ac90-b087753e5792%2Fpanic.png?v=15...

Most viewed post - Feb 2021 on Robots and Physical computing Blog

Click on the links in red to read more. Explaining the Tinkercad microbit Neural network In a previous post, I looked at developing a neural network in Tinkercad around the Microbit (details available here ) and the whole model ... Making a neural network in Tinkercad from Microbits Tinkercad and microbit neural network In a previous post I produced a single neuron based around microbits in Tickercad - see here . To exte... VR robot in a maze - from Blocks to Python Recently I produced a post about playing with Vex Robotics VexCode VR blocks and the Maze Playground. The post finished with me saying I w... Easy, Free and no markers Augmented Reality - location based AR For a few years, I have been a fan of Aframe and AR.js - these are fantastic tools for creating web-based Virtual and Augmented Reality.  No... Tinkercad and Microbit: To make a neuron The free online CAD (and so much more) package Tinkercad  https://www.tinkercad.com/ under circuits; now has microbits as part of...

Build yourself a Planet - Web VR

Using Mozzila's brilliant AFrame, a web-based Virtual Reality model of a planet with rings and include a moon with an image on it. Step 1. Basic Planet The first step is to set a new site in  Glitch.com  and then add a white sphere on a black background. <html>   <head>     <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>   </head>   <body>     <a-scene>      <a-sphere position="0 1.25 -5" radius="3" color="white" >       </a-sphere>          <a-sky color="black"></a-sky>     </a-scene>   </body> </html>     Using the Aframe 'tags' to create a white sphere and to create a black background Step 2: Rotate the planet and add some colour Now we can add a surface to the ...

VR robot in a maze - from Blocks to Python

Recently I produced a post about playing with Vex Robotics VexCode VR blocks and the Maze Playground. The post finished with me saying I would like to play with Python and do a Python version of it. Well it is actually very easy to do it. You can do it in two stages from the block code. First click on the <> icon (lighted in the figure above and it gives a further view producing Python code that changes as you change the blocks. The last stage is to convert to a text project (button at the bottom right of the screen. Example of the code. myVariable = 0 def when_started1(): global myVariable drivetrain . drive_for ( FORWARD , 100 , MM ) while not down_eye . detect ( RED ): drivetrain . drive_for ( FORWARD , 5 , MM ) if right_bumper . pressed (): drivetrain . drive_for ( REVERSE , 30 , MM ) drivetrain . turn_for ( LEFT , 20 , DEGREES ) drivetrain . drive_for ( FORWARD , 20 , MM ) else : if l...

Escape the Maze with a VR robot - Vex VR

You don't need to buy a robot to get programming a robot, now there are a range of free and relatively simple to start with robot simulators to play with. Three examples are listed below: - Make code for Lego EV3  https://robotsandphysicalcomputing.blogspot.com/2020/05/programming-robots-virtually-3-lego-ev3.html   - i Robot simulator  https://robotsandphysicalcomputing.blogspot.com/2020/04/programming-robots-virtually-2-irobot.html - Vex robotics Vexcode VR   https://robotsandphysicalcomputing.blogspot.com/2020/04/programming-robots-virtually-1-vexcode.html   It is the last one of these ( https://www.vexrobotics.com/vexcode-vr ) that is the focus of this post and return to hit, after an earlier discussion in  https://robotsandphysicalcomputing.blogspot.com/2020/04/programming-robots-virtually-1-vexcode.html   .  Two of the nice things about the package, apart from being free, are it uses a Scratch-like programming language and it provides a ...

Explaining the Tinkercad microbit Neural network

In a previous post, I looked at developing a neural network in Tinkercad around the Microbit (details available here ) and the whole model can be found at    https://www.tinkercad.com/things/hPV4nU0Asr5-smooth-bojo   Quick overview of a simple neural network; at its simplest, it has at least three layers of neurons where the output of the first layer's neuron, the input layer, is connected as an input to every neuron in the next layer, the hidden layer. The output of the neurons in the hidden layer connects as inputs to every neuron in the final output layer - which gives the outputs from the network. The figure below gives an overview; neurons are processing units. Well, sort of. Neurons as processing units is certainly true for the hidden and the output layers. It is not true, though, for the input layer; this is literally a layer of inputs with no processing going on.  So going back to the first figure of tinkercad microbit neural network and comparing it with th...