Help! Program for my final project

Hey
I've been trying to write a certain program for a project for a long time now and I can't. I'd love for you to help me
The general idea of the project is a device that should show where the other person is
To do this I use servo motors, xbee components
and 2 Arduino mega controllers

The seeker:
connections :
xbee > serial2
keypad 4x4 > pins 2-9
servo 1 > pin 22
servo 2 > pin 24

The program will do the following:
On engine 1 will be the xbee
He will perform a test at three different angles 160,90,45
In each of the angles it will check the strongest transmission power
Where the strongest power is there he will direct the second servo
In addition, on the keyboard, according to the clicks, it will send serials through the xbee
Pressing 2 will send a south string
Pressing 8 will send a north string
Pressing 6 will send a west string
Pressing 4 will send a string east
Pressing 5 will send a danger string

What are you looking for:
connections :
xbee > serial2
lcd i2c > arduino (scl, sda)
The program will perform the following action:
Constantly transmit some string to the xbee component so that the other component finds it
the strings it receives (sent through the second controller)
Print on the screen.

are you expecting someone to write the code for your homework?

show us what you've tried and explain where you get stuck and we'll provide guidance.

(I would suggest to study Serial Input Basics)

3 Likes

Hi, @dolevsabaggg
Welcome to the forum.

Can you please tell us your electronics, programming, arduino, hardware experience?

Have you written any Arduino code before?

Thanks.. Tom.. :grinning: :+1: :coffee: :australia:

"final project" for what?

Hello dolevsabaggg

Welcome to the worldbest Arduino forum ever.

This is a nice project to get started.

Keep it simple and stupid firstly.
Follow the example code that comes with the library or
run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.

Have a nice day and enjoy coding in C++.

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