RFID,LCDwith i2c, Arduino,servo90degrees


#1

Who knows how to code in arduino their variables on hardware anyone can help me? Please anyone can give me some example codes for this topic ?

Rfid card is used for payment to enter the servo. And the LCD w / i2c will see balances and pay at the car park.

Any help will be appreciated :smile:


Getting the RFID-RC522 to work! [SOLVED]
#2

What devices are you using? Knowing the specific models will help.

However, learning how to do it will be more meaningful than getting code done for you.


#3

i use Arduino uno, lcd 16x2 with i2c, micro servo 99,rfid rc522

Yes @kennethlimcp
I’ll just ask for a sample code so it’s easier for me to know and understand. And the deadline on our project is also very close.


#4

Well, this is not an Arduino forum but i’ll share some links to get you going.

Servo sample code
https://docs.particle.io/reference/firmware/photon/#servo

RFID rc522 sample code
https://playground.arduino.cc/Learning/MFRC522

I have no idea which model of LCD you are using so maybe a link to the product would help.


#5

I’ve done sample codes sir. I just do not have a idea of ​​how to combine everything. Especially in the payment code. When it comes hardware part.
How do i code like this ? to rfid parts?

#include<stdio.h>

int main ()
{
int card=100, reload, amount=0;

	printf("Insert card\n");
	scanf("%d",&card);
amount= card-25;

	printf("Your bal. %d\n\n", amount);
	
	
	printf("Insert amount\n");
	scanf("%d", &reload);
amount=reload+card;
	printf("%d reloaded\n", reload);
printf(" Your card is %d", amount);
	
	return 0;
	
}