Hello everyone,
I'm new at arduino and for a school project I have to build a device.
The point is that I'm not really good at programming and I have to do it,
Here is the problem:
I would like to send a notification on my android phone, and I don't know what module to use, how to connect all the wires and gow to program it, if someone can help me that would be great
Thank you of you help me out !!
Thats rather a complex problem for a beginner. When you say you have to do this - is this the project school have given you, or one you have come up with yourself? If its one the school have given (im making the assumption your at high school not college/uni) then they should provide the support needed, as it really will not be easy!
If its a project idea you have come up with, then I would suggest you rethink and come up with a more suitable, simpler project more within your capabilities
My teachers told me to do it because I had no idea and I had to accept it and both of my teachers don't know how to help me so that's the problem.
I've been watching videos but I couldn't found any help. so that's i've come here
If there's a simple way to do what I want, and if you know how to do it, I'll apreciate your help
So if the teachers dont know how to do it, how are they going to be able to mark your work? how will they know how if your method is sound but you dont managed to complete it?
I teach broadcasting, radiofrequency engineering and antenna system design, as well as basic radio and electronics - from KS3 to post graduate! And I would never give out a project that I myself couldnt solve!
Others with more experience of the necessary code and hardware to do the task youve been given will be along at some point and will advise you if it is possible and how, but personally I dont feel your teachers are being fair here
I remember myself back in yr 11 finishing my GCSEs - I made a lap timer using discrete logic and 7-seg displays! That was considerably easier (even easier now with arduinos!!!) than what you have and that was my final assesment! (it was 26 years ago though!)
OK, lets assume however that you cant get out of it for a simpler project! First you need to define what the message is you wish to send, what technology you wish to use to send it, and what the trigger inputs will be to activate sending the message.
Inputs etc are simples, as is the code to act on them. The hard part will be the connection. To an android phone you would be looking at GSM/GPRS, Bluetooth, wifi etc. How far from the phone you can be will affect that choice. Be aware that a GSM/GPRS solution will need a SIM card and hence will cost money to send the message!
There are ready made modules and code libraries for each of these. I would stronly recommend tracking down libraries that will do most fo the functions you want the code to undertake!
The best way would be to ditch the arduino and get an adafruit esp8266 huzzah board.
No wiring needed and you can easily google the rest
If you have to keep the arduino, get an esp01 module and hook it to the arduino and pops your uncle.
Going the esp8266 technically sends an email to your phones sms number. Looks just like a text on your phone but depending on your teachers interpretation it might not technically meet the projects specifications.
Thanks, it was all I needed I guess.
I have already done the biggest part of my project and the only thing I need is to send a notification and an email is accepted so I think you gave me all the keys I needed to continue my project. I'll try and find how to code it but if it's made do send emails then I think it will be easier to code it.
Btw my project is to send a notification to my phone when the sensor detects that there are no more objects left. I did all that part and I replaced all the notification system by a LED and it worked, now I think I'll just need to replace the LED code to the notification code and change the else if line and it will be ok. I can show you my code if you wish .
Thanks for the fast answer
(I'm in a french school and I'm only 17)
I agree with Qd's suggestion. If wifi is ok for the link then that will probably be the easiest route, the libraries will sort the issues of getting it to work,
I still think its a bit poor that the teachers would give a project that they dont know how to solve!
Good luck! Pop back when your projects complete and let us know how it worked!
explain what you want to do. (in laymen terms)
"send a notification on my android phone".... means absolutely nothing, and provides no context.
- Do you want to SEND ('something?') from your Android phone to your Arduino?
or - Do you want to SEND ('something') from your Arduino to your Android phone?
Next:
'WHAT'.. is it you want to send?
Explain/Define what 'notification' means to you? (so we can understand as well)
Once the target device 'receives' this 'notification'... what should be done? What event/action needs to be done?
IMHO... you have a couple options..
starting with either WI-FI.. or Bluetooth connection to let the Arduino/Android communicate.
You can use either plain/vanilla HTML/CSS/JS/jQUERY as an interface for the wi-fi... or even create a GUI/APP for your Android phone using something like MIT APP INVENTOR..
** to comment on the teacher aspect. What a JOKE!..
Teachers dont know how to help? (they should be fired... they cant perform their job)
Teachers randomly assign a project they have no clue about? (they should be fired... they cant perform their job)
If you didnt have a project in mind.... I find it odd they assigned you a project, that you had to take, that they themselves have no clue how to create themselves. Are they English teachers or something? or GYM teachers?
Something is suspect with all this.
edit:
this post sat in 'Warning' mode after submission (practically all day left open in a tab), because someone had posted before I completed my response, and I didnt catch it. so if this seems a little 'late.out of context that is why.
I am sorry for you
I would like to have a personal, very personal conversation with your teachers.
My son had the same problem. A teacher wanted the scholars to improve a SQL database.
They were hardly introduced into programming. All were novices.
It turned out, that the teacher had tried to program his own database and was not able to solve his problems. He wanted to administer his stamp collection.
I would like to have a personal, very personal conversation with your teachers.
This is definitely no technical help, however, somtimes a nontechnical comment can also help.
arduinoaleman:
I am sorry for youI would like to have a personal, very personal conversation with your teachers.
My son had the same problem. A teacher wanted the scholars to improve a SQL database.
They were hardly introduced into programming. All were novices.It turned out, that the teacher had tried to program his own database and was not able to solve his problems. He wanted to administer his stamp collection.
I would like to have a personal, very personal conversation with your teachers.
This is definitely no technical help, however, somtimes a nontechnical comment can also help.
This!!!
I can understand the basic idea of the project, but why not just keep it simple and send the message over the USB to the serial monitor? or to an LCD display?
This project is the sort of thing I would give to apprentices coming out of graduate school!
The other option would be a GSM shield to send texts over the cellular network.
I also disagree with a task that the teacher does not know how to complete? How will they give feedback/advice?
xl97:
explain what you want to do. (in laymen terms)"send a notification on my android phone".... means absolutely nothing, and provides no context.
- Do you want to SEND ('something?') from your Android phone to your Arduino?
or- Do you want to SEND ('something') from your Arduino to your Android phone?
Next:
'WHAT'.. is it you want to send?
Explain/Define what 'notification' means to you? (so we can understand as well)
Once the target device 'receives' this 'notification'... what should be done? What event/action needs to be done?
IMHO... you have a couple options..
starting with either WI-FI.. or Bluetooth connection to let the Arduino/Android communicate.
You can use either plain/vanilla HTML/CSS/JS/jQUERY as an interface for the wi-fi... or even create a GUI/APP for your Android phone using something like MIT APP INVENTOR..
** to comment on the teacher aspect. What a JOKE!..
Teachers dont know how to help? (they should be fired... they cant perform their job)
Teachers randomly assign a project they have no clue about? (they should be fired... they cant perform their job)If you didnt have a project in mind.... I find it odd they assigned you a project, that you had to take, that they themselves have no clue how to create themselves. Are they English teachers or something? or GYM teachers?
Something is suspect with all this.
edit:
this post sat in 'Warning' mode after submission (practically all day left open in a tab), because someone had posted before I completed my response, and I didnt catch it. so if this seems a little 'late.out of context that is why.
By any notification I mean anything that can make the phone vibrate so it can be an email, a message, a push notification or what so ever so everything that can let a message on the screen, there is no need to be a message on the screen, even thought it wouldn't be bad.
And I want to send this notification from the arduino to my phone(android).
And one part of my project i've already done is to turn an LED green whhen an object is missing, so basicly I used an ultrasensor divice and it worked perfectly. Now instead of turning the led green I would like to send a notification just to say that an object is missing
And they are french teachers, teaching mechanics and electronics basicly
That's a much more difficult task than you are assuming it is.
Sending from the phone is easier than receiving to the phone.
*tip: I understand that english is not your first language? (but there is a difference between the words...to, from, on..etc, so it was difficult to understand that you want to receive 'data' TO the phone, FROM the Arduino, or maybe it was just me? and I missed it?)
You need to decide on what protocol you want to use then.
The above solutions suggest using wifi, and hence an ESP8266 module.
- I unfortunately have never done (nor really understand) how the phone would parse this message/date using that approach?
I saw mention of it sending an 'email' that comes as text (I thinkits just number@service.ltd).. that comes as a text, but I'm not clear how an ESP sends an email. If it reaches out to 3rd party script/service to do so, that makes sense, then.. however you need to find that service, or (easy enough) whip up a quick PHP script to do this for you.
But where does this get hosted?
Bluetooth would be simple,...but still needs work as well.
A con, would be you are limited to BT range (30 meters? or feet?) or something?
what you'd need something like the following:
Arduino (Uno, Pro-Mini.. whatever really)
An HC-05 bluetooth module (couple USD dollars tops)
You could then use MIT App Inventor to make an app (plenty of tutorials on this) to 'receive' the Blutooth message from the Arduino/HC-05 side of things, and have the phone 'do' whatever you have the app you create using MIT App Inventor to do. Vibrate..etc You'd have to look at the list of things it has control/access over, its been a while since I've played with it or written any apps with it.
Good luck.