Friday, 28 December 2018

Raspberry Pi RC Lego car


In the next iteration of the Raspberry Pi based controlling of Lego motors I purchased another basic motor previously used with the Ferris Wheel, the aim was to create a simple RC Lego car. The remote control is the same idea as in the RaspiExpress using GuiZero and accessing that over wifi on my Iphone using Real VNC.

Here is a photo of the latest hacked together vehicle:

Here is the code:......Link

Here is a video of it working.... Link

Updated 08/01/19.

New updated GUI using GuiZero.

Here is the updated code: link

Here is what it now looks like:




Cya.
















If you like this blog check out all the others here

Saturday, 15 December 2018

3d printed light up Lego Christmas Tree



Kari Lawler has helped out at several jams over the last 18 months and has kindly made some 3d printed christmas trees that slot together and sit nicely on a Lego brick. Here is the relevant info if this something that interests you:

Here is the 3D stl file : link
Here is a video of it working: link
Here is the code : link

To control the light you will need:

  • 1 x neo pixel 
  • 1 x Micro:bit
  • 3 x crocodile clips
  • Power for the Micro:bit


Here are basic images of how it was put together:




Over

If you like this blog check out all the others here

Wednesday, 12 December 2018

Blocks controlling blocks




This recycles the code from the RaspiExpress and replaces the GUI buttons with whacking different blocks in Minecraft. This still uses a Raspberry Pi and a Lego motor. The same Edu Kit 3 motor controller/ hat is used. Please see a video below of how the initial test worked.

Here is a link to the code: link



Cya

If you like this blog check out all the others here

Friday, 30 November 2018

25 Minecraft hacks of Christmas '18


Over the next 25 days I shall be recycling existing blogs and maybe a few new ones to look at 25 different coding experiments with Minecraft and Python.

Day 1: Modding interface with GUIZero. This experiment pulls together several previous coding experiments and cements them all into one GUI which can trigger a range of different array of block based events.

Read more here ...... Link

Day 2: This blog has a link to dozens and dozens of my Minecraft experiments from over the years. They are all linked into a pdf document called the 'hackpack' here is the link to the related blog .........Link

Day 3: Getting started with BitIO and MInecraft....... Link

Day 4: BitIO and Minecraft 'Tilting Rainbow Road'......... Link


Day 5: EduBlocks  and MInecraft getting started............ Link


Day 6: EduBlocks  and MInecraft ...........Amen to walking blocks............Link


Day 7: BitIO  and MInecraft 'Touching pins takes you places'...........Link


Day 8: Edublocks / BitIO and MInecraft..........The Liverpool Makefest Minecraft Pixel art Twitter bot........... Link


Day 9: BitIO and MInecraft  ''Minecraft CPU temperature graphing"


Day 10: Edublocks and Minecraft 'Bridging the gap between visual coding and text based coding with EduBlocks'.......Link

Day 11: MInecraft Education Edition My First Command Block.......Link

Day 12: BitIO and MInecraft : PixelCraft.......Link


Day 13: Minecraft Education Edition: Give inventory and changing weather.......Link


Day 14: BitIO and MInecraft 'Micro:bit Transport' ........LInk


Day 15: M:EE MakeCode 'Get coding'........Link

Day 16: BitIO and MInecraft 'Scalable Housing'..........Link

Day 17: MInecraft Education Edition: MakeCode Getting started........Link

Day 18: MInecraft Education Edition:MakeCode 'Wool Wall'........Link

Day 19: Raspberry Pi Minecraft controlling Lego motors .... Link

Day 20: Raspberry Pi and Minecraft: Pixel Cakes(RPI big birthday weekend resource)
...................link

Day 21:  Raspberry Pi and Minecraft: Pixel Craft 2.0......Link

Day 22: Raspberry Pi and Minecraft: Experiments with GPIO triggers and Minecraft
.......Link

Day 23: Minecraft Education Edition: Vertical farming ......Link

Day 24: Raspberry Pi and Minecraft: GPIO zero Minecraft "Whack on board Led's"
........Link

If you like this blog check out all the others here

TUI Calculator/ binary to denary conversion



This is code covers:


  • Casting 
  • Functions 
  • Tui's
  • Basic input
  • Procedures
  • String element checking
  • Basic mathematical operators
  • Simple validation on binary section
It allows the user to chose from a text based menu and either:

  • add, subtract, divide or multiply two numbers that the user inputs
  • enter an 8 bit binary number and convert it denary
Here is the code:

Over

If you like this blog check out all the others here

Monday, 26 November 2018

Lists and TUI's


Here is a program I used with year 9 to introduce list basic list functions and TUI's.
It contains:

  • selection
  • procedures
  • procedure calls
  • casting 
  • pop
  • remove 
  • lists 
  • append
It is a very simple simulation of a "game server" allows the user to add gamer tags, remove and pop off the end of the list. 

Here is the code : link

If you like this blog check out all the others here

Tuesday, 6 November 2018

Micro:bit Express 2.0 'adjustable speed'



This is an incremental improvement to the original Micro:bit Express which went via remote control fwd and back and stop. The next project the Micro:bit controlled Ferris Wheel allowed you to adjust the speed within a small range. This project applies the same logic to the train with a greater range of speed.

You will need all the same kit as in the original blog here is the key info:


  • A video of the updated train in action link
  • Code for the updated remote link
  •  Code for the updated motor controller link 
Enjoy :)

If you like this blog check out all the others here