element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Lego Spike Prime Weather Station with Raspberry Pi -- Episode 543
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 10 Mar 2022 6:37 PM Date Created
  • Last Updated Last Updated: 25 Mar 2022 8:24 AM
  • Views 15895 views
  • Likes 9 likes
  • Comments 27 comments

Lego Spike Prime Weather Station with Raspberry Pi -- Episode 543

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

It felt like it was time for another lego based project, but with the Rpi Build Hat, combining Lego and a Raspberry Pi together has never been easier!

 

Supplemental Content:

  • Episode 465: Lego Raspberry Pi HQ Camera
  • Build Hat Compatibility
  • Build Hat setup
  • Met Office weather API
  • Resources

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
RPI4-MODBP-4GB - Raspberry Pi 4 Model B RASPBERRY-PI 1 Buy Now
16GB MicroSD Card with NOOBS for Raspberry Pi TRANSCEND 1 Buy Now
SC0622 RASPBERRY PI BUILD HAT RASPBERRY-PI 1 Buy Now
SC0746 Power Supply, Raspberry Pi Board, 48W, UK RASPBERRY-PI 1 Buy Now
 

Additional Parts:

Lego Spike Prime set

element14 presents

element14 presents  |  About Katie Dumont |  Project Videos

  • LEGO
  • e14p_KD
  • Lego Spike Prime
  • weather
  • raspberry pi
  • katie
  • rpi
  • Daily Weather Display
  • friday_release
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • kmikemoo
    kmikemoo over 3 years ago +1
    hifromkatie Nice project. Very cute. Well executed.
Parents
  • beacon_dave
    beacon_dave over 3 years ago

    Great project.

    ( Now, can you make an input version that allows you to select the weather ?  Slight smile )

    One issue I find though is that these type of projects often tie-up what is often a very limited Lego resource. If you want to keep that weather station, you now have to go replenish your Lego box with the parts you have used, which I suspect could be quite expensive as motors were never the cheapest of Lego parts. Alternatively you view this as the prototype version and then you recreate it with a final build using cheaper components along with 3D printing and then return the Lego parts from the prototype version back to Lego stock for the next project.

    With this build, you have hidden most of the Lego look behind the printed cover sheet. Perhaps for true 'LegoLand' style you could use some of the flat shiny tiles (yup the ones that are a nightmare to remove) mosaic stile with stick-on numbers where required.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hifromkatie
    hifromkatie over 3 years ago in reply to beacon_dave

    Yes, I think this fits the prototyping model really well, quick to build up a working model and test the theory and code before buying specific hardware.

    As a bonus, I do lots of school sessions as a stem ambassador, and taking this in to the schools has sparked alot of attention from the children.

    If only I could use it as a weather input, that would be bliss!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to hifromkatie

    "...I do lots of school sessions as a stem ambassador..."

    That sounds like a pretty cool role.

    Did you see shabaz's recent comment when asked about the potential of his current project for use in teaching scenarios ?

    /products/raspberry-pi/raspberrypi_projects/b/blog/posts/xr-1000-pico-based-robotic-motion-subsystem?CommentId=b8269e42-1107-42fd-a248-e580c635d788

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 3 years ago in reply to beacon_dave

    Nice project! Very cool using the motors to make an electronic display. I'd not heard of Lego Spike before.

    I wonder how similar the UART communication is between the Raspberry Pi build HAT, and the motor control board I worked on.. probably I have a less flexible API that only operates one motor at a time (using commands like 'm2 100 cw' sent over UART, to indicate that motor 2 should turn 100 units clockwise, except for motors assigned into pairs, in which case both are controlled simultaneously using commands like 'fwd 100' etc. I figured it's good enough for some basic projects, but more advanced ones would need code changes there.

    From Katie's video I could see that from the Pi side, there is a Python library to abstract away the UART commands, whereas currently my project doesn't have that, and the connected board (e.g. the keypad project) would use Python code like this to move a pair of motors forward:

    uart.write(("fwd 1000\n\r")

    or, a bit cleaner using a simple function::

    command_send_uart(command.index("fwd"), "1000")

    Also, I've pre-assigned two connectors to be a pair of motors, and the other two connectors to be controlled as separate motors, since at the time I figured that may meet 80% of needs (a weather station would be in the 20% however! : ) although that's easy to modify, it currently entails modifying the code on the motor control board.

    The lego integration with the Pi Build HAT is nice, I can see it being attractive to schools as a result, I guess my motor control board is needs a bit more work to integrate with Lego/Fischertechnik, although it could be possible.. maybe with 3D printed adapters for the motors I used. I'm no good with 3D CAD and don't have a 3D printer however!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 3 years ago in reply to shabaz

    FYI Fischertechnik are continuing to embrace Arduino, R-Pi, micro:bit platforms as alternatives to their own controllers via various 3rd party adapters and controllers

    https://www.fischertechnik.de/en/teaching/arduino-microbit-u-co

    A new range of kits as well, some which now include mechanum wheels. Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • beacon_dave
    beacon_dave over 3 years ago in reply to shabaz

    FYI Fischertechnik are continuing to embrace Arduino, R-Pi, micro:bit platforms as alternatives to their own controllers via various 3rd party adapters and controllers

    https://www.fischertechnik.de/en/teaching/arduino-microbit-u-co

    A new range of kits as well, some which now include mechanum wheels. Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube