GSM BASED VOTING SYSTEM SIMULATION IN PROTEUS USING ARDUINO

Photo of author

By Jackson Taylor

Home » Hardware » GSM BASED VOTING SYSTEM SIMULATION IN PROTEUS USING ARDUINO

As an Amazon Associate we earn from qualifying purchases.

A GSM based voting system lets an Arduino record votes from push buttons and report the totals by SMS over a mobile network. Building it in Proteus first means you can test the circuit and the code on screen before you buy any parts. This article explains how the project is put together, what each part does, and how to test it in simulation.

What the project does

The idea is simple. Each candidate or option has a button. When a voter presses one, the Arduino adds one to that candidate’s count and shows a confirmation on an LCD. When voting ends, the Arduino sends the totals as a text message through a GSM module to a stored phone number.

It is a good learning project because it combines digital inputs, a character display, serial communication and AT commands in one design.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

Components used

  • Arduino Uno as the controller that counts votes and talks to the GSM module.
  • Push buttons, one per candidate, plus extra buttons to end voting and reset the count.
  • 16×2 LCD to show prompts, confirmations and results.
  • GSM module (such as a SIM900-type module) to send SMS messages. In Proteus this is usually replaced by a virtual terminal, as explained below.
  • Buzzer or LED (optional) to signal that a vote was accepted.
  • Resistors and a potentiometer for pull-downs and LCD contrast.

How the system works

  1. On power-up the Arduino initializes the LCD, sets all vote counters to zero and sets up the serial link to the GSM module.
  2. The LCD shows a prompt asking the voter to press a button.
  3. The program checks the candidate buttons. When one is pressed, it increases that candidate’s counter and shows a short confirmation.
  4. A short delay or debounce routine prevents one press from being counted twice.
  5. When the end-of-voting button is pressed, the Arduino builds a message with each candidate’s total and sends it by SMS.
  6. The LCD shows the result and the system waits for a reset.
See also
Building Automation System using TEMPERATURE SENSOR AND GAS SENSOR SIMULATION IN PROTEUS

Setting up the circuit in Proteus

Open a new Proteus project and add the Arduino, LCD, buttons, resistors and a virtual terminal from the component library. The exact pins are up to you, but a typical layout looks like this:

  • Connect the LCD data and control lines to digital pins of the Arduino, and wire the contrast pin to a potentiometer.
  • Connect each candidate button to its own digital input with a pull-down or pull-up resistor. If you use the Arduino’s internal pull-ups, the buttons connect to ground and read LOW when pressed.
  • Connect the buttons for ending and resetting the vote to two more inputs in the same way.
  • Connect the Arduino TX pin to the RX pin of the virtual terminal, and the terminal TX to the Arduino RX, as you would for a real GSM module.

If you want a refresher on serial output and LCD wiring, see this guide on displaying UART data on an LCD in Proteus.

Simulating the GSM module

Many Proteus installations do not include a ready-made GSM module model. The common workaround is the Virtual Terminal, which shows everything the Arduino sends over serial. You can read the AT commands there and confirm that your code produces the right sequence. Some users also add third-party GSM library files, but the virtual terminal is enough to verify the logic.

The commands your code needs to send for a text message are standard:

  • AT to check that the module responds.
  • AT+CMGF=1 to switch to text mode.
  • AT+CMGS=”phone number” to start a message to a given number.
  • The message text, followed by the Ctrl+Z character (ASCII 26, or 0x1A) to send it.

Keep short delays between commands so a real module has time to respond. In the simulation, make sure the baud rate in the sketch matches the baud rate set on the virtual terminal.

Loading the code into the simulation

Write the sketch in the Arduino IDE, using the LiquidCrystal library for the display and Serial or SoftwareSerial for the GSM link. Then export the compiled binary (Sketch > Export compiled Binary). In Proteus, double-click the Arduino, point the program file property to the generated .hex file, and press Play.

See also
POWER CONTROL USING TRIAC AND ARDUINO

Testing the simulation

  • Press each candidate button once and check that only that candidate’s count changes.
  • Hold a button down to see whether your debounce logic stops repeated counting.
  • Press the end-of-voting button and check the virtual terminal for the full AT command sequence and the result text.
  • Press reset and confirm the counters return to zero.

If nothing shows on the terminal, check the baud rate, the TX/RX crossover and the path to the .hex file first. Those three cause most failed simulations.

Limits of this design

This is a learning project, not a real election system. It does not identify voters, stop one person from voting repeatedly, protect the vote count from tampering, or keep an audit record. Real voting systems need strong authentication, secure storage and independent verification, which a simple Arduino build does not provide. You can extend the project with an RFID card check per voter or by storing totals in EEPROM so they survive a power loss, but treat those as exercises.

Related Proteus projects

If you want to practice the same GSM and Arduino skills on other designs, these are worth a look. The GSM based power theft detection project also sends alerts by SMS. The smart ration card system combines RFID and GSM with other hardware. For a different sensor-driven build, try the greenhouse monitoring simulation.

FAQ

Do I need a real GSM module to run this in Proteus?

No. You can use the virtual terminal to watch the AT commands the Arduino sends. A real module is only needed when you move the design to hardware, along with a SIM card that can send SMS.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Which Arduino board works best for this simulation?

An Arduino Uno is the usual choice because it is widely supported in Proteus library packs and has enough pins for the buttons, LCD and serial link.

Why does my simulation count one press as several votes?

Buttons are read very fast by the Arduino loop. Add a short delay after a press, or wait for the button to be released before counting again.

See also
SMART RATION CARD SYSTEM USING LOAD CELL,PUMP,RFID,GSM

Can this system be used for real elections?

No. It is a demonstration of GSM communication and vote counting. It has no voter authentication, security or audit features that real elections require.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works