https://itunes.apple.com/us/app/reality-editor/id997820179
- Bugfix: Fixed scaling bug with extra resolution retina displays such as the iPhone 6+.
This Version was tested with:
iPad2, iPad3, iPad4, iPad Mini, iPhone5s, iPhone6+
https://itunes.apple.com/us/app/reality-editor/id997820179
This Version was tested with:
iPad2, iPad3, iPad4, iPad Mini, iPhone5s, iPhone6+
Hi, valentin,
I am trying this app and setting up testing environment with Raspberry Pi but I don’t how to make the app see the virtual objects on.
Could you give me some hints or guides and let me know how to test those examples on website?
I have install ‘object’ on my Raspberry Pi and I can access the Dashboard on Raspberry Pi and create a “Target” and upload dataset.
After that, I still cannot see any objects from App. I’m thinking maybe I miss some settings on App. Could you please help a bit? Thanks a lot.
ivan
Have you checked that your phone is logged in to the same Wifi as your Pi?
When this is the case you can click on the little engine block icon and see a list of discovered objects.
Your object should be in this list.
Yes. I am sure they are in the same Wi-Fi and I also check there is no object in the list.
Actually, the same situation happens on my Arduino Yun.
I’m trying the same example of sensorAndSlider on Yun and I cannot make it work and i did double check both iPhone and Yun are connected to the same network.
A quick question:
can I try this example of sensorAndSlider without setting Vuforia, just upload target.jpg and target.zip which are included in the example to Arduino Yun ?
After I did this, both buttons of Target and Interface are in green. However the target name has been changed to sliderEBfkkl50m62r.
Ivan
Yes you can try the example files.
Make sure that your object has the name slider.
You don’t need to make any changes to any name. The sliderEBfkkl50m62r name is a combination of the object name and a generated ID.
Your Arduino should be in the same network as your phone.
If the Interface button is green, the object is broadcasted in to the network and your phone should be able to see it.
Hi, @valentin,
Thank you. I am able to upload the sensorAndSlider example to Arduino Yun.
Right now I can see the slider bar on the screen and I can control it but my LED does not light up with it. I will keep trying.
And, I would like to connect the touch sensor and LED. However, there are no buttons shown on the screen when I press the second button iPhone.
I expected I can see two buttons which are Sensor and LED, like what I saw in the video.
Do I miss something to do this example?
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.
Hi, @valentin,
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]
Hi @ivanlin,
There are two different models here.
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.
Hi, @valentin,
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.
Cool
We can then add it to the webpage later.
Hi, @valentin,
Love to. I can do it today but a bit later.
@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.
Thank you both.
Can you edit each others posts?
Otherwise, maybe you guys can just work on it in a separate google doc?