Help with making a pointer system

Hi ! I am making a project using arduino and hope someone has some idea on how to do it.

My goal:I want to make a device that can remember a persons points.(EX.Jeff=100pnts).I also want to make it so that i can add more names(EX.Jeff=100
Adam=150),I also want it so that I can Add and Subtract points for a person(EX.Jeff=100-50),I also want so that I can save a set of points(EX.List1
List2).I hope that you can help me and that my explanation was clear.I also want some additional features that might be useful.Thanks

Consider the Arduino database, or extended database libraries.

Suren-711:
Hi ! I am making a project using arduino and hope someone has some idea on how to do it.

My goal:I want to make a device that can remember a persons points.(EX.Jeff=100pnts).I also want to make it so that i can add more names(EX.Jeff=100
Adam=150),I also want it so that I can Add and Subtract points for a person(EX.Jeff=100-50),I also want so that I can save a set of points(EX.List1
List2).I hope that you can help me and that my explanation was clear.I also want some additional features that might be useful.Thanks

Why are you choosing to do this on an Arduino?

Suren-711:
My goal:I want to make a device that can remember a persons points.(EX.Jeff=100pnts

It will make it much easier to give useful advice if you tell us all about your project - for example, why are you remembering points and what do the points represent.

An Arduino may not be the best solution as it has very limited data storage.

...R

The Arduino is great at real-world interfacing. For example if you are pushing buttons or detecting that a ball crossed over a line.

It's not good at typing in names. There's no Arduino keyboard with Qwerty layout. It's not impossible to plug in a USB keyboard but it's so difficult that there's other easier solutions.

For me, I'd probably make it a web page. Then you can log in on any computer or phone with internet access.

thanks for your reply.

1.So could I already program the names into arduino
2.Could I use an sd card to increase the arduino storage
3.I want to make a device for remembering points for a quiz

The ESP8266 can do WiFi, act as web server, and has plenty of on-board storage. It doesn't sound like this needs many input pins so very suitable.

Suren-711:
3.I want to make a device for remembering points for a quiz

I reckon it would be whole lot easier to write a program like that on a laptop which has a keyboard for entering data and a screen for displayng it. OR perhaps on a mobile phone - I recently (perhaps late in the day) discovered QPython which allows you to run normal Python programs on an Android phone.

...R

Replying to #5...

  1. Yes.

  2. Yes but you are nowhere near the limits of the Arduino's memory. Not unless there is something else that you aren't telling us.

  3. Ok, got that. Does it also hold the quiz questions?

How long does this quiz take? If you need to store the points for long periods or you expect the Arduino might get switched off during the game then look at using the EEPROM memory to store the points.

I only want it to remember points and store it and show it time its opened again.

Thanks for all your reply

Can anyone give me some advice on how to store the data?


l Jeff=100 l
l Adam=150 l
l l
l l
l l

1 2 3
4 5 6
7 8 9

  • 0 -

=

I WANT IT TO LOOK LIKE THIS AND ALSO WANT TO TO STORE OTHER SET IF POINTS

Use an array for that:

struct Score {
  char name[20]; // Up to 19 characters per name plus null termination.
  uint16_t points; // Score can be 0-65535.
}
Score score[20]; // Up to 20 players with scores - 440 bytes total data.

// Store in EEPROM:
EEPROM.put(0, score);

// Retrieve from EEPROM:
EEPROM.get(0, score);

thanks. since I am a starter(I have quite some experiance though)could you explain the code a bit more or give me a link to a tutorial.Could you also help with adding or subtracting points

c struct
arrays
EEPROM

Suren-711:
since I am a starter(I have quite some experiance though)could you explain the code a bit more or give me a link to a tutorial.Could you also help with adding or subtracting points

It is hard to make sense of all of that when you read it as a piece. Unless of course your experience is in some other field than programming.

Anyway, assuming you are a beginner with Arduinos, never mind the programming for a moment. How do you propose to enter the data for the players' names and their scores - will you have a keyboard that you can type on?

...R

I would programe the names into the arduino.

Suren-711:
I would programe the names into the arduino.

If that is practical then it is a solution.

How do you propose to update the score that each person has?

...R

Thats one of the things I want help with and I there is something about it in a earlier reply by someone

I think Robin is more looking for how you think the user is going to interact with your device.

What are they going to use to enter the data - the scores and the names? You sketched out a numerical display, that's for numbers, not convenient for names.

What key sequences?

How many updates on scores?

How to check for someone's current score?

That kind of things you have to know before you start looking for possible hardware, and that in turn you need before you can start programming.

I understand Marle.I should think about that

I want it to be like the monopoly (electronic banking system thing) which is used to minus or add people points but It should also remember points after is turned off and on.I also want it so that it remembers multiple sets of points.

I wanted to use the device myself,but if other people wanted to use It, it should be like "player 1, player 2".

Thanks guys you have helped me to improve my project and get a good idea of it on how it functions.