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 15869 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
  • shabaz
    shabaz over 3 years ago in reply to beacon_dave

    Hi Dave,

    That makes sense, better to incorporate a cheap brick or plate into the adapter, rather than try to make something from scratch to snap onto Lego.

    I found an AliExpress page with reasonable diagrams with dimensions, and have added them, colorized to make them easier to follow, into the blog. I've quickly checked, and it seems consistent with what I'm measuring them to be too.

    Incidentally, they are really nice motors : ) The mounting holes are nicely spaced with round numbers for easy prototyping, and M2 screws fit. There are wheels on AliExpress with 3mm D shaft, so they can fit on directly too. And they come in several gearbox settings, and with a normal connector already attached. Perfect : ) 

    image

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

    It also gets around a few printing issues if using FDM printing, like gravity and printing on air. Slight smile

    I saw that drawing but it is missing most of the dimensions on the mounting flange.
    (btw looks like you have miscoloured the left end of the shaft in the lower drawing ? where the D flat ends and becomes round)

    Overall height of the flange is missing, assuming 15 +/- 0.20 as is same as diameter of gearbox
    Overall width of the flange is missing, just the hole centres.
    No curve radius from the mounting hole to the outer edge of the flange.
    (No centres for the screws through the flange into the gearbox or detail.)

    Also there are no dimensions for the PCB attached to the motor.

    Main missing measurement I think though is the overall width of the flange.
    From that can calculate outer radius by subtracting mounting centres then finally draw line tangents between that and the motor diameter to get the flange straight edges.

    If going for a full enclosed motor brick, then the next question might be how the motor flange should align with the end face of the new motor brick. Three main options here:
    Flange completely on the outside of the brick with a 15mm dia hole in the brick face for the gearbox.
    Flange completely on the inside of the brick with a 6mm dia hole in the brick face for the boss protrusion from the flange face.
    Flange set into the brick face with a flange profile shape cut out of the brick face.

    If going for a more skeletal design, then perhaps could look at basically attaching a 2x4 Lego plate top and bottom, with a little bit of additional 3D extrusion to fit it neatly to the cylinder of the gearbox and the mounting flange. The rest of the motor would be exposed (handy if it tends to run warm). 

    The last question (for the time being) would be the alignment of the output shaft in relation to the Lego co-ordinate system. This may be important if you want to be able to directly mesh with existing Lego Technic gears. Or it could simply be "don't really care, we will work with what we have got".

    They are pretty small as well so looks like they could be used for all sorts of smaller projects which used to be an issue at one time with the larger motors - everything had to be scaled up to suit the size of the motor unit. Although SLA resin printing may be better at this size. 

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

    I've added some manually-measured dimensions onto the diagram in the motors section on the blog page, it's still not fully dimensioned but hopefully usable now. Personally I think it would be best with the third style you mention (shape of flange cut out of the brick face), so that the white surface is flush with the outside of the brick, because the shaft length is short (unless as you say there was some adaptation of the shaft to suit existing Lego shafts/gears - but the 'don't care' option might be good enough : ). That's a good point, the normal Lego motors look quite large.

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

    Some napkin sketch type calculations would suggest that the overall motor brick would likely end up being 4x4 Lego units square by three bricks high. 31.8 x 31.8 x 28.8mm (WxDxH) to keep it nice with standard Lego geometry and yet be large enough to accommodate the motor plus room for a 4x4 Lego unit plate glued on top and bottom.

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

    motor in a toy building block

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

    Hi Dave,

    Wow - that's really neat! It looks better than real Lego motors : ) Very nice compact design. I take it just the green bit is 3D printed and the plates would be normal Lego as you mentioned earlier.

    I think I might bit the bullet and get a 3D printer at some point this year (and just rely on 3D files created by others for now, since I'm still a beginner).

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

    If you don't mind, can I add that image into the motor controller blog post? Just so it doesn't get lost in the comments, that this is how people could use such motors. 

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

    I can't edit the comments : (

    I was thinking, perhaps an iteration of it could also have holes on the rear (maybe the other sides too) to accommodate studs for both old and new style technic beams as shown here in yellow and blue. But that may result in a bigger cube if the plastic doesn't have the thickness internally for the studs to fit in, so perhaps it's not worth the effort, since the small cube design is nice and useful as-is.

    image

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

    Yes, the green bit is the 3D printed bit and the red and blue are the standard 4 x 4 plates used to cap it off.

    Could potentially get it a bit smaller but at the risk of ending up with non-standard spacings.

    motor in block

    Currently it matches the height of 3 normal bricks (or 9 plates).

    By rotating the flange by 45 degrees it may be possible to fit it into 3 units wide but not sure if you can get a 4 x 3 plate to cap it with. Could also reduce the height to 2 bricks plus 2 plates, but thought it was easier to start off like this as a proof of concept.

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

    Feel free. I'm already feeling guilty about filling up Katie's project thread here... 

    • 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

    Feel free. I'm already feeling guilty about filling up Katie's project thread here... 

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

    Done, thanks.

    This is a really affordable alternative to Lego motors if a 3D printer is available (which probably a lot of schools have by now).

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

    A small laser cutter could be used as an alternative to make it as well. Could cut a load of end panels out of a single sheet to mount the motors on, using castellation top and bottom to knit with the lego bumps for additional strength.  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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