Go Down

Topic: Feedback Problem (Read 1 time) previous topic - next topic

Pete987

My name is Peter from the Netherlands and I'm new on this forum.
I recently bought an Arduino Uno with an Ethernet Shield.
Now I try to understand how it works by a  to use variety of programs examples from existing projects.
I am very interested in communication between the Arduino and my Android.
Recently I've made something  so I can switch an output on the arduino board by using my android   :D.
I used App Inventor to create an App for this.
Now I'm trying to create a feedback signal from a digital input from the arduino board to my android.
I understand that I have to use the "TinyWebDB1.GotValue" but I don't know how and .
I need a working  example  with 1 digital input for my arduino and for my App Inventor please.
In the app I have one button to switch an output and one label that indicates the status of the input (red/green for example)
Can anyone help me with this problem ?

(With this message I attached the project code from the app and a screen print)


PaulS

Quote
Can anyone help me with this problem ?

What was your Arduino question? This appears to be more of a "how do I use some software on some other hardware" question.

Pete987

("how do I use some software on some other hardware" question)

Yes and no...
The arduino is ideal for domotica purposes.
You can use it stand alone or let it interface with other devices.
My question is how do I do that in the arduino software part and in the android app.
I've seen a lot of examples in the internet and there are many ways to interface  and it looks so simple but I can't figure it out how it's done with an android device.


PaulS

Quote
but I can't figure it out how it's done with an android device.

This is not the android forum. Lots of the same letters, but close is not good enough.

Pete987

Ok...., new question
I want to start a project to exchange data from and to my arduino from a remote location.

PaulS

Quote
I want to start a project to exchange data from and to my arduino from a remote location.

OK. Fine. You have our permission. Did you have a question?

pluggy

PaulS is doing his Sheldon Cooper impression again........

michael_x

Mobile has to do with GSM or Bluetooth, hasn't it?

Look in the Playground ...

Pete987


PaulS is doing his Sheldon Cooper impression again........


It seems so....

Pete987


Mobile has to do with GSM or Bluetooth, hasn't it?

Look in the Playground ...


Ethernet /Internet / WiFi
Thanks........

SirNickity


PaulS is doing his Sheldon Cooper impression again........


Hahaha.  That's DR. Sheldon Cooper.  XD

OK, seriously now.  Have you used the Arduino in a more traditional way yet?  E.g., have you turned on LEDs and sent feedback from buttons via the IDE serial console?  Try that first.  Get the Arduino code working before you complicate it with Ethernet and Android interaction.

Then, try Ethernet, but use PuTTY (assuming Windows...) to establish a raw socket connection.  Get your Arduino code to respond to socket requests, and send button event notification through a TCP connection.

When all that works, then go for the Android thing.

No doubt you'll have questions along the way, but it's a lot easier to help with specific problems than trying to go from square one to a relatively elaborate setup in one post.

BTW, holy cow ... how can people write code with that puzzle-piece thing?

Pete987

Hello SirNickity

I am familiar with the basics of the arduino (inputs and outputs)  .
Have tried several example programs who are included in the arduino application.
Also I have dowloaded several projects from other programmers  and tried to figure out how it works (reverse engineering).
I have found a program to switch a led directly from my smartphone (see attachement).
The switch status can be monitored with the Serial Monitor.
Maybe I'm going too fast....?

If you want I can explaine why I need a feedback  signal.

(And sorry for my english. It is not my native language)





SirNickity

So what's the problem, currently?  What is the next move that you are having trouble with?

I don't think you'll have many volunteers to build the project for you, but if you try something and it doesn't work, you'll get lots of suggestions on what to do about that.

Pete987

I don't ask volunteers to build the project for me. :smiley-sad-blue:
My problem is with JSON.
How can a bring a value from the arduino to a client ?
Do you have a basic example for me ?

SirNickity

You're talking about code on the web client side, but you haven't gone into any detail on what's running on the Arduino.  If you're using JSON, I assume you're planning to communicate via HTTP.  Have you set up a web server sketch on the Arduino?  Have you tried using a PC-based web browser to verify that it works?

You're asking very generic questions.  You need to be much more specific about what you're hung up on.

Go Up