Trying to implement a shield raise mechanic

hey guys, for a project, im wondering if it is possible to set up the arduino to check wether a shield object has been raised by the user.
I'd rather not use an acceleraometer as i feel it might be overcomplicated. I just need to check Binarily, wether an object is held up, or not. (its for a sword and shield controller for a game) how would I do this? I'm still new to Arduino really

@rustystarfyre Installation and Troubleshooting is for Problems with the Arduino itself NOT your project. It says so in the description of the section. Therefore I have moved your post here. Please be more careful where you post in future.

You may want to read this before you proceed:-
how to get the best out of this forum

You can always use a tilt switch.
Tilt switch

there are very basic tilt sensors that could do the job may be?

Ahh my appologies @Grumpy_Mike sorry about that!

the problem with that may be that the player can abuse the tilt switch so they wouldn't need to hold the shield up, like you would if you were using a real shield i guess. What other snesor might work?

I don't know. what do you want to detect?

i wanted to check if the player was holding a shield up in a blocking stance. so the shield would be in front of thier body, relative to the screen. (the arduino is intended to interface with Unity so its inputs can be read into a basic game)

how would you know if the user is holding it "in front of thier body, relative to the screen" or if the shield is just standing on the floor?

therin lies the problem :slight_smile: thats why i thought a tilt switch might not cut it. is there a positional sensor, like a light sensor or something that can be used? I'm still new at all this! theres loads of sensors its just finding the right ones that can be programmed. Im not sure what they are

if you are concerned about cheating players, then you'd need a camera on the PC and image analysis to see if the shield is in front of the screen...

I think you are asking for the impossible especially if you think an accelerometer is overly complex.

Often what seems simple to a beginner is actually pushing the limits of what is possible.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.