Pages: [1] 2   Go Down
Author Topic: Feedback Problem  (Read 1717 times)
0 Members and 1 Guest are viewing this topic.
The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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   smiley-grin.
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 - downloaded 3 times.)

* Screen.jpg (82.31 KB, 932x588 - viewed 21 times.)
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 654
Posts: 50952
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 654
Posts: 50952
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 654
Posts: 50952
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Lancashire, UK
Offline Offline
Edison Member
*
Karma: 9
Posts: 1991
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Germany
Offline Offline
Faraday Member
**
Karma: 59
Posts: 3091
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Look in the Playground ...
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

It seems so....
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Look in the Playground ...

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

Anchorage, AK
Offline Offline
Edison Member
*
Karma: 42
Posts: 1176
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Hahaha.  That's DR. Sheldon Cooper.  smiley-lol

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?
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 - downloaded 6 times.)
Logged

Anchorage, AK
Offline Offline
Edison Member
*
Karma: 42
Posts: 1176
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

Anchorage, AK
Offline Offline
Edison Member
*
Karma: 42
Posts: 1176
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1] 2   Go Up
Jump to: