element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Micro: Bit code club post 2: Radio communication and Electronic Voting Machines!
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ashutosh_pandey
  • Date Created: 11 Aug 2019 3:00 PM Date Created
  • Views 1298 views
  • Likes 5 likes
  • Comments 0 comments
  • join the micro:bit summer code club challenge
  • micro:bit
  • summer code club challenge
  • bbc micro bit
Related
Recommended

Micro: Bit code club post 2: Radio communication and Electronic Voting Machines!

ashutosh_pandey
ashutosh_pandey
11 Aug 2019

It has been an interesting week here in Bangalore. After the students got acquainted with how to use the micro:bit and its sensors, we decided to move on to more complex projects. Over the course of 6 days students worked on Radio communication using the Micro:Bit and building an Electronic Voting Machine (EVM). The latter half of the week was spent in making micro:bit wearable devices, which is detailed in the next blog post.

 

Why an EVM? India is the largest democracy in the world and has an electorate of about 900 million for the national elections held every 5 years. Safe to say that elections are a very big deal here! Since counting paper ballots would potentially take forever, we employ electronic voter machines - or EVMs as they are fondly called.

 

Radio

imageimage


Students learnt about how the radio works using the micro:bit chat example in the tutorials of Microsoft MakeCode. To those unaware, the micro:bit has a BLE (Bluetooth Low Energy) antenna that is capable of sending and receiving messages. As we can see in the example above, sending and receiving messages from just one micro:bit to the other is trivial. Getting multiple devices to communicate with each other requires the use of the radio group feature, and the students used tutorials on the internet to understand how this works. The micro:bit has a very easy implementation of radio communication, one does not need to do any pairing or or specify any SSID or password (unlike using an Arduino with a WiFi module) so this makes it very easy to introduce a fairly complicated concept to very young students. The students tried sending simple messages and later played a simple game of sending coded messages with a key that they had agreed to with a friend, while a third person with a micro bit in the same radio group tried to listen in and crack the code. It was good fun.

 

One student even tried to make his own SOS distress signal system although he was a little disappointed when I informed him that the range would be too short for it to work in a real life scenario image . The video is below!

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

 

With the students having learnt about how the Send string, received string and radio group commands work, it was time to work on the EVM!

 

EVM

{gallery} EVM Machines in India

image

A EVM Machine in India. Image credits BCCL

image

Image credits ECI

 

The EVM itself is a very simple device, It is battery operated and and has a simple one time programmable micro controller along with a control unit. The voters simply press the button of the candidate/party they wish to vote for, and the vote is logged in the machine. The control mechanism is there to ensure that each voter cannot cast a double vote by pressing the vote button two times.

As the minimum age for voting in India is 18, all the students here at the club were too young to vote, but they were not too young to understand and build a simple EVM for themselves! We connected 5 Micro:bits in a radio group, with one Micro:Bit acting as the dashboard to display the number of votes along with the option the candidate had chosen.

 

imageimage

Of course, our EVM had to look like an EVM, so out came the markers, sketch-pens and chart paper! The students used a simple sheet of thermocol with a white chart paper for the vote casting device part of the EVM. The names on the EVMs are the names of the students working on building them. A total of five micro:bits were needed, as we wanted to represent eight political parties (A normal EVM has 16 buttons for 16 different candidates). The fifth EVM was the dashboard, which would show the number of votes cast and the option selected.

imageimage

To implement the buzzer which is there in actual EVMs, they used example number 6 (How to make a buzzer) of the Kitronik Kits they had received. The Kitronik kit contains an array of parts such as LEDs, resistors, capacitors, motors etc. We used the mounting plate, the breakout board and the piezo buzzer. The book was well illustrated, and had examples of how to make a simple program to play different tones by programming the micro:bit.  Getting everything to work perfectly was difficult, and there are still more advanced concepts (such as displaying party/candidate wise data on a serial monitor) which the students plan to implement once they learn them. The mounting plate and breakout board were pretty helpful, as they eliminated the need for crocodile clips (which we did not have!)

imageimage

Here is a video of the first iteration they made! They did not have any instructions to go by this time, as it wasn't a part of the MakeCode tutorials, but I am happy to say that they figured it out on their own!

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

 

More posts will follow. Thank you for your support and comments/criticism are welcome!

 

Footnotes:

 

1.) The first post is here: Micro: Bit code club Post 1: Humble beginnings and a game of Hand Cricket.

 

2.) We used this program as a reference: https://makecode.microbit.org/projects/voting-machine 

  • Sign in to reply
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