I am looking to get some code made for a simple IR sensor shooting game

Mod edit:
See I am trying to make a simple IR sensor shooting game

I would like to get a estimate on some code for something like this

the goal for the code is to make a Arduino IR shooting game with six targets(different targets will add different point amounts). the elegoo remote (elegoo is temporary and i think i am going to use a IR transmitter connected to a nano) will be clicked by someone playing and then the the IR sensor will detect a signal from the remote and then the corresponding (each target has one IR sensor and one servo) sg90 servo motor will "fall"(move) backwards it will stay at this position for a second(maybe less) and then move back to is original position and while all of this is happening there will be a tm1687 seven segment display that detects every time a target(ir+sg90 servo grouping) is "hit" (detects a signal) and will add a point with the help of a point counting code for displaying the points on a tm1637

also I only have access to Arduino 1.8.19 and Arduino IDE 2.0.4 so it needs to work with specifically one of these versions.

the parts:

  • a nano
  • for the ir sensor and transmitter will be a Gikfun Digital 38khz for both
  • the servo is a sg90
  • my IR remote is just a elegoo remote I also did not buy it so I do not know where to look. It does however look like this type
    Screenshot 2024-05-08 120042
  • and a tm1687 seven segment display to display points

this is what I want it too look like


the pin connections are 100% flexible but here are the ones in the picture:
IR sensor 1 in wired to A0. Servo 1 is wired to D13
IR sensor 2 is wired to A1. Servo 2 is wired to D12
IR sensor 3 is wired to A2. Servo 3 is wired to D11
IR sensor 4 is wired to A3. Servo 4 is wired to D10
IR sensor 5 is wired to A4. Servo 5 is wired to D9
IR sensor 6 is wired to A5. Servo 6 is wired to D8
the TM1687 DIO pin is wired to D7
the TM1687 CLK pin is wired to D6
the numbers assigned to each component represent one grouping(target). the matching numbers are for which motor should be controlled by which IR sensor.

when powering it the main target is not going to move so i think I am just gonna have a extension cord and a Arduino usb to arduino cable with a adapter to outlet on the usb side(I live in America so keep our outlets in mind and not the Europeans)

What's the budget?

I have something like that built years ago - a shoot-swamp-monsters-in-the-dark-game:

  • modified gun (for the weight feeling and trigger mechanics) with IR sender (38khz)
  • basicly unlimited targets with TSOP receivers
  • LED display
  • active targets are shown with bright LEDS (glowing eyes - instead of servos and appearing objects)
  • game logic (counter, lives, restart ...)
1 Like

So the IR part sounds good but I really want the whole target falls down and comes back up part. I don't need lives, i want it to be a get as many points as possible in like 30 seconds or something also this is a school project so I don't want it to realistic(I mean the gun part not the monsters). Also I need to convince my teacher to get some IR transmitters so it would be easier if I could use the ones I put in the post as I can get a 2 for one(the pack comes with both). for the budget I am going to take that both ways I already have 99% of the parts at my school I just need the code and the transmitter. I am thinking maybe $10 ( I don't if that's too low, I have some wiggle room) for payment.

So you are trying to cheat your way through your school project with 10 bucks? :rofl:

First I tried it already the honest way but I do not now how to code. Also I can go higher, I don't know what a good price is.

For starters: take the average hourly rate of your local car mechanic, multiply that by the time you already spent on the project plus the time you think you will spend on the project --> that's what your minimal estimate is.

Around here, an entry-level embedded software engineer gets paid around €60k / year. That's for around 1850 hours of work, so that boils down to around €32/hr. This is for a salaried employee with a pension plan, unemployment etc. For something working freelance doing a small job, count on €75 and upwards, and that's lowballing it. Count on double that for experienced engineers working more complex tasks and/or small projects with high start-up cost/overhead.

But let's say you can find someone just starting out willing to do it for a measly €50/hr. Given the discussion in your other thread which suggests that the functional specs aren't quite crystallized out, there will be quite a bit of back & forth and probably some rework to get everything the way you want it.

So you're looking at someone putting in at a full day's work if they're very fast/efficient, spread out over a couple of days for the back & forth. So let's start at around €300-400. That's the low low low end of the range with very minimal testing.

PS: this is not an offer I'm making. It's an attempt to make you aware of the realities of getting freelance embedded engineering work done.

3 Likes

man maybe I should just go ask AI

It'll be cheaper, but it won't get you there. Give it a try though. It'll only cost you some time.

This are already used up when I start the Arduino IDE.

1 Like

This task should be thrown at the AI. But I think your code will conflict with NPC.

NPC == Non Player Character ?

... If you want nothing to work, use AI.

You want to write it yourself. But... how will you tell which detector is the intended one? IR is directional, but can bounce around.

1 Like

i saw a thing where if you put a black tube with the sensor/ transmitter at the end it makes it less omni-directional

I understand your idea. To get this to block other non-direct signals, the "black" must not be smooth or shiny to avoid reflections. Follow @zweiblum, who has experience in the problems you will face (and overcome).

Thanks for the recommendation

Closed at the request of the OP.
Please see their other topic on the same subject.