No more long queues at polling stations. I am doing a project on voting using a cell phone with a cell phone based voting machine using micro controller AT89S51. I am stuck at writing a code for this project.
No more long queues at polling stations. I am doing a project on voting using a cell phone with a cell phone based voting machine using micro controller AT89S51. I am stuck at writing a code for this project.
please show us what you have and we can see if we can help
Ill be glad to look at your code. what compiler are you using?
Thank you Peter for the concern, the working of the project is controlled by a micro controller ATMEL AT89C51 and a DTMF decoder CM8870, used for decoding key tones of cell phone, and EEPROM. DTMF is sent to the microcontroller which is decoded by CM8870C and the password is fed with the candidate number. The EEPROM is used to store the memory in case of power failure. This project is based on assembly language programming. The software platform used in this project are Keil uVision3 and SPIPGM37.
Please direct me freely what you think about this project idea. I am much worried of the code.
Well, this will be integrated with use of the Internet, thence one can vote from anywhere, provided you access Internet.
I'm not aware of any c++ compilers. I use SDCC. Is there any specific reason for using the at89s51? that line does not have much flash or ram.
You might use Flash rather than EE. EE allows random rewrite for 4x the cost. Flash allows only page (they drain the quantum wells on erase) erase, which doesn't seem to be a limitation here.
8051 is probably going to be steamin' away running this.
You should determine your basal functions, name them, and code them first.
My initial question is why this micro-controller
It is an industry standard sure but very limited for something like your attempting, more IO than you need and probably way less Program and Ram space than you will need
I would suggest an Arduino UNO or higher Arduino or if you making a custom board, an ATMEGA 328 (Uno can be the development platform, then unplug the chip into your own custom board if needed
You can use the free IDE/Compiler and it is programed in standard C. You should still be able to interface to all your peripherals without an issue and there are loads of people in the community who will be able to help
there are also plenty of shields to provide internet access and other functionality with ready made libraries for your consumption
If your new at this, perhaps you should consider this walk before you run approach and it has the FLASH memory for program, EEPROM for storing variables and SRAM for the run time way in excess of the 8051 based micro you mention
328 has
32K FLASH Program Space
2K SRAM
1K eeprom
at89s51
4K FLASH (Program Space)
128bytes ram
no eeprom
if you must use 8051 you should look at this C8051F12x/3x 8-bit Microcontroller (MCU) | Silicon Labs