Feedback Problem

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)

Switch.zip (1.76 KB)

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.

("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.

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.

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

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?

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

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

Look in the Playground ...

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

It seems so....

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

Look in the Playground ...

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

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

Hahaha. That's [u]DR.[/u] 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?

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)

Simple_Led_Switch.ino (3.05 KB)

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.

I don't ask volunteers to build the project for me. :disappointed_relieved: 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 ?

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.

I am able to send data from the arduino (as web server) to a webbrowser.

This won't work out. I'm seeking on the internet for examples to understand how it works but a can't find the rosetta stone

Found a example on the forum wat I want to make:

http://arduino.cc/forum/index.php/topic,68748.0.html

I try to contact this guy for more information but I think he's gone. Last visit was in august 2011 and several other members requested information about his project.

Thanks for the help so far. Let you know the results later

Doesn't the playground example http://arduino.cc/playground/Main/InterfacingWithHardware#Communication about arduserver (http://arduserver.com/) include both action from the browser to arduino and feedback from arduino to the webpage?