CF and Microcontroller Arduino

461 views
Skip to first unread message

Denis Renesto

unread,
Mar 10, 2012, 5:33:20 AM3/10/12
to CommandFusion
Jarrod,

I have an Microcontroller Arduino with ethernet shield.

It is connected with port 80 and ip 192.168.1.25

I created a program in Arduino to capture the temperature sensor and write in the browser. 

In the browser works fine.

How do i capture the values for the CF without the use JSON and XML?

Thanks.

Terence

unread,
Mar 10, 2012, 7:53:42 AM3/10/12
to comman...@googlegroups.com
And the reply from the system will be the body. To see the full feedback in a serial text box, just assign the body to text box i.e. using CF.setJoin("s1", body); You don't need to create any system in the System Manager for this.
 

From: comman...@googlegroups.com [mailto:comman...@googlegroups.com] On Behalf Of Denis Renesto
Sent: 10 March 2012 18:33
To: CommandFusion
Subject: CF and Microcontroller Arduino

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Denis

unread,
Mar 10, 2012, 10:40:28 AM3/10/12
to comman...@googlegroups.com
Terence,

Thank you for your help.

I tried and works fine.

But my question is: How to process automatic at 2  seconds?

Enviado via iPhone

Jarrod Bell

unread,
Mar 10, 2012, 10:45:39 AM3/10/12
to comman...@googlegroups.com
You could send the HTTP request every 2 seconds using a setTimeout call

setTimeout(function(){ CF.request(.....) }, 2000);

Replace with the correct code in the body of the setTimeout anonymous function.

Jarrod

Denis Renesto

unread,
May 29, 2012, 12:17:24 PM5/29/12
to comman...@googlegroups.com
Jarrod.

I tried and it worked very well.

Below is a video with Arduino + CommandFusion.


Thanks.

2012/3/10 Jarrod Bell <jar...@guilink.com>

Jarrod Bell

unread,
May 30, 2012, 9:52:18 AM5/30/12
to comman...@googlegroups.com
I just happened to have viewed that video the day before you posted this :)

What voltage levels are you seeing from the DVD player for on/off states typically?

Jarrod
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.

Denis Renesto

unread,
May 30, 2012, 2:18:12 PM5/30/12
to comman...@googlegroups.com
Since the current is alternating (as pictured), the sensor reads the values ​​within a range of -1024 to 1024.

In Arduino, I check if the current signal is varying between positive and negative and print a string with 0 and 1. Caught the return in CommandFusion and set in a join.

Thanks

2012/5/30 Jarrod Bell <jar...@commandfusion.com>
250px-Simple_sine_wave.svg[1].png

Jarrod Bell

unread,
May 31, 2012, 2:59:37 AM5/31/12
to comman...@googlegroups.com
Excellent. You can do this with our new hardware as well :)

Jarrod

LEONARDO DA COSTA FLORIANO

unread,
Dec 3, 2015, 7:48:19 PM12/3/15
to CommandFusion Software
Dear, how I would spend the step by step how did the procedure work?
if you have an example file would be great.



Below is a video with Arduino + CommandFusion.




2012/5/30 Jarrod Bell <jar...@commandfusion.com>
Jarrod.

Thanks.

2012/3/10 Jarrod Bell <jar...@guilink.com>

--
Reply all
Reply to author
Forward
0 new messages