Monday, 1 May 2017

Microbit Remote Control CBiS Car

I wanted to contol the CBiS micro:Bit Car via gestures whilst holding another micro:Bit (see Figure 1)

I went for:
- Button A in combination with moving the micro:bit left or right, moves 'Car' forwards or backwards;
- Button B in combination with moving the micro:bit rotated forward or backwards, turns the 'Car' left or right;

Perhaps not the most logical combination but fun.
Figure 1: CBiS micro:bit car and 'controller' micro:bit

The inspiration from this remote car idea came from four sources
- CBiS Education site and seeing them demonstrating it;
- Technology with Save Us Micro:bot Radio Control website ;
- DrBadgr blog on the Lunch Box robot;
- A twitter conversation


The approach taken is simple; the Controller micro:bit has the following operations (see Figure 2 for the PXT code)

  • Buttons A+B together send '0' out by a radio protocol;
  • Button A with changes in the x-direction send '1' or '2';
  • Button B with changes in the y-direction send '3' or '4' ;




Figure 2: Remote Control 
For the code go to: Remote Control - the images produce on the micro:bit, are there as a bit of fun (they have no meaning) and are different for each action.


The control on the 'Car' turns the received numbers  (sent from the controller) into forward, backward, turning motions and stop. The PXT code can be found at Motor Control.


Figure 3: Car Control

The control is basic but fun (well I enjoyed it). There is a lot of scope for improvement and adaption. Please feel free to adapt any of the code and it would be great to hear what others do via the comments.






All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruon

23 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. If you're looking to sell a car in the Sunshine Coast area, there are several options for selling your car for cash. Here are a few suggestions.Car dealerships: Many car dealerships in the Sunshine Coast area offer cash for cars, and can give you a quick and easy sale. Just keep in mind that the dealership will likely offer you less than the market value of your car to make a profit.It's always a good idea to research your options and compare offers before making a decision on where to sell your car to cash for cars sunshine coast. Additionally, make sure to properly prepare your car for sale, including cleaning it and fixing any cosmetic or mechanical issues, to maximize the amount of cash you receive.

    ReplyDelete

  3. This is a fantastic piece of writing. I thoroughly enjoy and appreciate your postings, which I consider to be highly original. Thank you for your contribution.We buy cars Melbourne is already in English, but if you're looking for a properly structured sentence, you could say: "We are interested in purchasing cars in Melbourne.

    ReplyDelete
  4. This is a fantastic piece of writing. I thoroughly enjoy and appreciate your postings, which I consider to be highly original. Thank you for your contribution.if you know about my blog so, read about it.One option is to sell your car privately through online marketplaces such as Gumtree, Carsales or Facebook Marketplace. This can be a good way to get the best price for your car, but it may require more effort on your part to advertise and negotiate with potential buyers.Another option is to sell your car to a used car dealer on the Gold Coast. This can be a faster and more convenient option, but you may not get as much money for your car compared to selling it privately.You can also consider using a car buying service that offers a quick and hassle-free way to sell your car.sell my car gold coast free valuation of your car and can offer you a fair price for it.

    ReplyDelete
  5. Very helpful blog. I like your post, if you know about my blog so, read about it.Scrap car removal Brisbane refers to the process of having an unwanted or damaged vehicle taken away from your property in Brisbane, Australia. There are various companies that specialize in scrap car removal services in Brisbane and can assist you in disposing of your car in an environmentally friendly and hassle-free manner. These companies typically offer free towing and can even provide you with cash for your old car.

    ReplyDelete
  6. I believe that the knowledge in this essay is useful for everyone. Obtaining a Canada Permanent Resident Visa is a significant milestone for individuals seeking to build a brighter future in the land of opportunities. Canada's Permanent Resident Visa program offers numerous advantages, such as access to world-class healthcare, high-quality education.

    ReplyDelete
  7. We would like to extend our sincere appreciation for your invaluable contribution, which has greatly enhanced the overall experience for everyone involved. Bonjour, French explorers! Dreaming of India? India e-Visa for France Citizens. You can easily apply for an e-Visa online. Whether for tourism, business, or medical purposes, this digital visa process is hassle-free. Just ensure your passport has six months' validity, have a recent photo, and a payment method for the processing fee. Get ready for an unforgettable Indian adventure!

    ReplyDelete
  8. We appreciate you sharing your wisdom and thoughts with us. We may continue to learn, develop, and keep informed through such cooperative efforts. Hungary folks keen on an India visa for remote gigs, the web's your path. India Visa for Hungary Citizens. Nail the form, sort docs, pay the fee. Wait a tad for processing. Once greenlit, dive into digital tasks in India. Smart prep ensures a seamless online visa jaunt.

    ReplyDelete
  9. See me! If you state your opinion, this is also a comment,...centraline aggiuntive benzina

    ReplyDelete
  10. Sensational! Your articles have taken me by surprise. I'm motivated to find more content like this. Thanks again for your contributions; they are exceedingly useful for us. I am a traveler and recently I traveled to Cameroon. I would like to share my experience like-Top 20 World-Changing Inventions and Innovations . Everything is so simple I got my visa online.

    ReplyDelete
  11. It's always inspiring to see how technology and creativity come together to bring about innovative solutions. The way you've explained the project step-by-step is both educational and engaging.
    promocodehq

    ReplyDelete
  12. Your blog post about the micro:bit remote control for the CBIS car is incredibly fascinating! Thank you for sharing your exciting project, and I look forward to more of your explorations in the world of robotics and physical computing.
    frugalishness

    ReplyDelete
  13. "The depth and breadth of topics covered on your blog are incredible. It's like having an encyclopedia of knowledge at my fingertips. Kudos to you!"
    https://savingcentstogether.com/promotions/the-parking-spot-promo-code

    ReplyDelete
  14. "Your ability to make complex subjects accessible and interesting is truly a gift. You're a master at simplifying the intricate, and I'm grateful for that."
    https://justamazingdiscounts.com/brand/bk-com-code-entry/

    ReplyDelete
  15. The attention to detail in your instructions is akin to the precision one might appreciate when assessing 'How to Get Olive Oil Out of Clothes.' An insightful and hands-on read that merges technology

    ReplyDelete
  16. The sound system in this vehicle is fantastic. Locksmiths Largo

    ReplyDelete
  17. This post offers an intriguing look at using Microbit technology for remote control cars, showcasing exciting possibilities in physical computing. For those in Ipswich looking to clear space for new projects, considering Cash for scrap cars Ipswich is a practical option in the end.

    ReplyDelete
  18. This is a cool project! Building your own remote-controlled car with a microbit is a great way to learn about robotics and coding. If you're looking to free up space for future projects and have an old, unwanted car taking up space in the garage, consider using an Unwanted car buyer service. They can take your car in any condition and give you cash quickly, so you can focus on building even more awesome robots!

    ReplyDelete
  19. This post on using Microbit for remote control cars is fascinating and shows how versatile and educational physical computing can be. The step-by-step guide makes it accessible for beginners and experts alike. For those looking to free up space for more projects, you can get some quick Cash for broken Isuzu vehicles to fund your next exciting venture.

    ReplyDelete
  20. Awesome project! Creating a remote-controlled car with a Micro is an excellent way to dive into robotics and programming. If you need space for new projects and have an old car sitting around, think about using scrap cars Parramatta. They can take your car and provide you with quick cash, making room for more innovative builds.

    ReplyDelete
  21. This Micro remote control project for the CBIS car is fantastic! The clear steps and practical application make it an excellent guide for tech enthusiasts. If you are looking to make some extra cash to fund your next project, Cash For Cars Cranebrook offers a quick and easy solution for turning your old car into cash.

    ReplyDelete
  22. Thanks for the fantastic guide on using the Micro
    as a remote control for the CBIS car! I really appreciate the step-by-step instructions and the detailed explanation of the code.

    I have a couple of questions about the project. First, are there any additional components or sensors that you would recommend to enhance the functionality of the remote control? For example, could integrating a gyro or accelerometer improve the control experience?

    Secondly, I’m curious about the range of the Micro
    's radio signal. Have you encountered any issues with signal strength or interference, and if so, do you have any tips for improving the range?

    ReplyDelete

Remote Data Logging with V1 Microbit

In an earlier post  https://robotsandphysicalcomputing.blogspot.com/2024/08/microbit-v1-datalogging.html  a single microbit was used to log ...