Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

How to choose a microcontroller?

Status
Not open for further replies.

charlesli

Member
I've been thinking about a project recently about car charging stations.
I want to apply the RFID principle to achieve swipe card charging.
So how do I choose a microcontroller?

QQ图片20210827175807.png
 
Just about any that can handle serial data and has at least a couple of hundred bytes of RAM (not actually essential, but it makes it simpler) - a PIC, arduino, raspberry pi, just about anything...

A typical RFID reader interface just sends a stream of serial data; either conventional serial, or wiegand format - two data wires, pulsed for one and zero bits respectively.

You wait for a full card number to be received, then compare it to the list of valid cards stored in the device memory.

Or for a card that contains "credits" you need a Mifare style card and reader/writer.
That gives you the card number, but also allows data to be read and written securely, you you can check a credit count and write back one less to "pay" for a service.

This is an example ready built Mifare reader/writer with a serial interface:

Or you can get a module such as this, with a matching antenna, and build your own device:

Look at the data sheet link in the module listing for the technical info.
 
That's great! I was initially thinking of paying by coin and then using a regular MFRC522, but it's great to hear you say that there is a module that can read credit cards and the ability to make payments.
 
that there is a module that can read credit cards and the ability to make payments.
To clarify, not "Credit cards" as in bank cards, but cards with writable memory that allow you to create a token payment system, so you can "top up" a card and then subtract units as it is used.
 
how do I implement this charging process
There are two approaches:

For stand-alone units (no internet connection), you need to create an encryption key and use that when writing data to the card.
You load or charge it by reading the credit value stored in the encrypted data, and adding however much the user pays for.

The target device works in a similar way, reading the data using its key and subtracting the cost of the service being paid for.

Read the Mifare interface documentation in detail - that has info on reading and writing data and the encryption keys.
"Your" service must have its own unique encryption key, so no device without that can change the data on the card relating to your credit system.

If everything is internet connected, you can have the "credit" data stored in user accounts on a web server and top up via such as paypal.
The target device units just need to access the web server to check and update the credit for that user ID.
 
Maybe I didn't express myself clearly, I was asking how to achieve charging (electricity)? Do I need a battery pack or something to make it happen?
 
Maybe I didn't express myself clearly, I was asking how to achieve charging (electricity)? Do I need a battery pack or something to make it happen?
Start again and give fully detailed info on what you mean?

Your first post related to CAR charging stations. The commonest type electric car charge devices (usually with Type 2 connectors now) just feed mains AC to the vehicle connector, with some monitoring and control so power is not switched on until the connector is in place, plus it also "tells" the car system the maximum current it can supply via a PWM signal on the CP pin. Plus safety devices such as an appropriate ELCB etc.

All the charge control and battery monitoring etc. are done within the vehicle electronics.


There is also another data transfer system possible on the CP pin for two-way communications if the charge unit and vehicle support it, so eg. the vehicle ID can be passed to the charger for automated billing, the "Plug and charge" system.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top