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

16 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

ChatGPT, Data Scientist - fitting it a bit

This is a second post about using ChatGPT to do some data analysis. In the first looked at using it to some basic statistics  https://robots...