Have you programmed the Arduino with the Arduino code?
If the Arduino is programmed and you still do not see any sign for the IO-Points it could be the following:
Sometimes the Open Hybrid platform and the Arduino Code are out of synchronization.
In that case you need to push the Arduino Reset button (32u4 Reset) on the Arduino Yun board.
Most likely after you press this button, the visual IO-Points will show up.
Do I need images or other files to show those virtual IO-Points?
Below are images and files placed on my Arduino Yun.
I think I need a circle image to do virtual IO-Points and may I need find one and upload to Yun?
Also, should I add two labels, like Sensor / LED, in a config file somewhere ?
[EDIT]@valentin
I believe the circle image is in here, the folder of dataPointInterfaces, right?
So, I need to find other reason why I cannot see the virtual IO-Points.
Currently, the Arduino code is programed and 32u4 Reset is pressed, but I still cannot see the buttons.
Should I worry the warning messages shown on Arduino IDE? I list them below.
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino: In function 'void setup()':
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:18:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
obj.add("slider", "led"); // add a new I/O Point to the Object
^
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:18:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:19:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
obj.add("slider", "sensor");
^
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:19:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino: In function 'void loop()':
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:28:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
obj.write("slider", "sensor", reading);
^
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:28:40: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:31:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
analogWrite(13, obj.read("slider", "led") * 255);
^
/Users/ivanlin/Documents/Arduino/libraries/HybridObject/examples/sensorAndSlider/sensorAndSlider.ino:31:43: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
For one there is the Augmented User Interface Mode. It has the following Icon in the Editor:
This is where you can generate HTML user interfaces for, that you can interact with.
Like a slider. This interface is what you create with the html webpage shown in your screenshot above. MAKE SURE THAT YOU REFERENCE OBJECT.JS IN YOUR HTML FILE, OTHERWISE NOTHING SHOWS UP
The other function is the programming. It has the following icon:
The programming is where your IO-Points show up.
These IO-Points are automatically generated. The generation is based on what IO-Points you define in your Arduino Code. You can use the Reality Editor to position them rightfully.
The IO-Points will allow you to connect objects or IO-Points with each other.
If you want to build simple interfaces, the entire visual appearance of the programming interface is something you have no influence. It will just work for you.
@ivanlin
Can you please give some information what Arduino Version you use.
Have you installed the Arduino Yun image (v0.3.1.1) as explained in
?
The Open Hybrid Arduino library runs without errors and warnings on the latest official Arduino IDE (1.6.7).
Download link: https://www.arduino.cc/en/Main/Software
I have just compiled a test with no warning messages.
Below is my environment settings:
Arduino Yun Image (v.0.3.1.1)
Arduino IDE (1.6.7)
Example: Example -> HybridObject -> sensorAndSlider
/*
Read from and Write to a Hybrid Object
Copy the files from the interface folder
to your Hybrid Object.
created 2015
by Valentin Heun
*/
#include <HybridObject.h>
HybridObject obj;
int counter =0;
void setup() {
obj.developer(); // allow developer tools
obj.add("slider", "led"); // add a new I/O Point to the Object
obj.add("slider", "sensor");
}
void loop() {
// Read from sensor
float reading = obj.map(analogRead(A0), 0, 940);
// Write to Object
obj.write("slider", "sensor", reading);
// Read from Object
analogWrite(13, obj.read("slider", "led") * 255);
delay(30);
}
Result:
I still cannot see the virtual IO-Points.
The warning message on Arudino IDE remains.
How do I make sure the success of obj.add(“slider”, “led”) and obj.add(“slider”, “sensor”)?
@ivanlin can we continue ths discussion here → Help and Bugs so that other people can directly check that thread for weather the issue they are having is already solved
@ivanlin
We have compiled a lot of error handling in like 3 different topics.
If you have some extra time, would you like to compile these discussions and error possibilities in to a simple FAQ?
It might be very helpful to others that also start?
I realize that I am working on this for so long, that I forget that some things are not obvious.
@V_Mohammed_Ibrahim Where should I put FAQ? I am not familiar with this forum. Could you give a link, and I can organize my information and upload it later.
Hi, @valentin,@ivanlin,
I have already install the hybrid object on windows.Both iPhone and Yun are connected to the same network.but i can’t see the “bird” from app.Maybe I miss some settings on laptop or app.Cloud you help me?
Hi @Sunny, When you upload the targets, you will see a little step by step guide.
In this guide you are shown a generated unique identifier… In your case it will look similar to:
testXXXXXXXXXXXX
whereby the x represent random letters.
You have to use this entire identifier as the name for your target.
I see that you only used “test” as the name.
This is the reason why the object is not showing up.