using the bridge to connect arduino yun serial data to the python server

#1

Tobias,

Ok now that I have the example echo client and server running, I’d like to figure out how to use the bridge library to connect the arduino processor’s serial datastream to the linino processor running the serial2ws.py server. I wonder if you are willing to take a look a the bridge library over at arduino and see if you can figure out how we can talk to the arduino side. I know there are lots of folks who would like to know. I’d be willing to write a detailed blog post of how I got it to work if you can help.

Cheers,

Pete

0 Likes

#2

Tobias,

Ok now that I have the example echo client and server running, I'd like
to figure out how to use the bridge library to connect the arduino
processor's serial datastream to the linino processor running the

As far as I can see, the "bridge" is a fancy layer on top of a plain serial connection between the MCU and the Linux Mips CPU:

http://jpmens.net/2013/09/23/understanding-arduino-yun-s-bridge/
http://arduino.cc/en/Tutorial/YunSerialTerminal

I guess there is a part of the "bridge" running on the Mips CPU that will occupy the serial. And I could imagine having a hard time making this part run as a part of Autobahn/Twisted process.

And further: it's probably not suitable for what you want to do. E.g. it provides "abstractions" like accessing the filesystem on the Mips from the MCU.

Personally, I'd rather try to get raw serial transport running. That will allow you to more or less directly use the serial2ws example.

The "successor" to serial2ws btw is:

https://github.com/tavendo/SRDP

There is only very rough docs, probably have a glance at

https://github.com/tavendo/SRDP/tree/master/arduino/demoboard
https://github.com/tavendo/SRDP/blob/master/doc/SRDP.md

This is much more advanced .. it can bridge generic MCU based devices via electronic datasheets to WebSocket/WAMP.

All the code (C, Arduiono, Py, etc) is there, but you'll probably be looking at more advanced stuff than the serial2ws thing .. which is a quick hack.

It's also unfinished work;) I just have too many thing in the cooking ..

serial2ws.py server. I wonder if you are willing to take a look a the
bridge library over at arduino and see if you can figure out how we can
talk to the arduino side. I know there are lots of folks who would like

Alright. That might be interesting. We're always looking to get more "visibility". Could you give me a little background on you, your project, your roadmap/timeline and what community you are networked with? I mean, I could probably justify order a Yun (well, the 50 bucks isn't the point;) and invest something like 3 days .. which should be enough to get the SRDP thingy ported, running and integrated into Crossbar.io/Autobahn. I won't bother with the serial2ws . it's a hack. If you get raw serial on Yun working (which I guess should be possible), it's a matter of modifying that hack to your needs ..

to know. I'd be willing to write a detailed blog post of how I got it to
work if you can help.

That would certainly be very welcome! Everything that reaches some audience .. you don't happen to have thousands of Twitter/FB followers or something? :wink:

/Tobias

···

Am 24.11.2013 22:19, schrieb Peter Kalajian:

Cheers,

Pete

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#3

Tobias,

Thanks for the quick response. Well, I’m not a super-guru with a big following, but since currently the first big production run of the Yun’s sold out quickly, I think there is a growing user base. I am a teacher and teach some basic engineering and programming, but I can write fairly well, and have a blog about my experience on the yun. So far just one post at http://yunadventures.blogspot.com/ with 68 page views in two days, so not a superstar! Of course, I’m sure that we could get the guys at Arduino to post any working example we have and that would get lots of view. As far as the project so far, I’m really just trying to figure out how to make this websocket thing work, but ultimately I want to put current and voltage monitoring on our school and challenge the students to cut the use. Having sensor data livestreaming on the homepage of the school would serve to raise awareness about energy use.

Cheers,

Pete

···

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

Tobias,

Ok now that I have the example echo client and server running, I’d like to figure out how to use the bridge library to connect the arduino processor’s serial datastream to the linino processor running the serial2ws.py server. I wonder if you are willing to take a look a the bridge library over at arduino and see if you can figure out how we can talk to the arduino side. I know there are lots of folks who would like to know. I’d be willing to write a detailed blog post of how I got it to work if you can help.

Cheers,

Pete

0 Likes

#4

Tobias,

Thanks for the quick response. Well, I'm not a super-guru with a big
following, but since currently the first big production run of the Yun's
sold out quickly, I think there is a growing user base. I am a teacher

Alright. I found a distributor in Germany that is still in stock and ordered one. Should arrive next 1-2 day.

and teach some basic engineering and programming, but I can write fairly
well, and have a blog about my experience on the yun. So far just one
post at http://yunadventures.blogspot.com/ with 68 page views in two
days, so not a superstar! Of course, I'm sure that we could get the guys
at Arduino to post any working example we have and that would get lots

Getting something on http://blog.arduino.cc/ .. that would be neat!

of view. As far as the project so far, I'm really just trying to figure
out how to make this websocket thing work, but ultimately I want to put
current and voltage monitoring on our school and challenge the students
to cut the use. Having sensor data livestreaming on the homepage of the
school would serve to raise awareness about energy use.

That sound like cool project! Raising energy awareness as a school project. I'd be willing to help.

Well we can certainly help with anything software and cloud related, though less hardware. Last time I turned on a soldering iron is years ago;) Regarding the hardware: do you have a sensor board capable of measuring electric energy consumption already? Or how do you plan to do it?

/Tobias

···

Am 25.11.2013 01:47, schrieb Peter Kalajian:

Cheers,

Pete

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

    Tobias,

    Ok now that I have the example echo client and server running, I'd
    like to figure out how to use the bridge library to connect the
    arduino processor's serial datastream to the linino processor
    running the serial2ws.py server. I wonder if you are willing to take
    a look a the bridge library over at arduino and see if you can
    figure out how we can talk to the arduino side. I know there are
    lots of folks who would like to know. I'd be willing to write a
    detailed blog post of how I got it to work if you can help.

    Cheers,

    Pete

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#5

Tobias,

NO problem on the soldering and electronics. I’m an electrical engineer by training. I will use a current transformer. Here’s a good post for what I will do:

http://openenergymonitor.org/emon/node/58

Turns out that they posted my blog on the arduino twitter and google plus feed, so this project will certainly get some airplay since the one forum thread on websockets over on the arduino yun blog has 1500 reads.

Pete

···

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

Tobias,

Ok now that I have the example echo client and server running, I’d like to figure out how to use the bridge library to connect the arduino processor’s serial datastream to the linino processor running the serial2ws.py server. I wonder if you are willing to take a look a the bridge library over at arduino and see if you can figure out how we can talk to the arduino side. I know there are lots of folks who would like to know. I’d be willing to write a detailed blog post of how I got it to work if you can help.

Cheers,

Pete

0 Likes

#6

Hi Peter,

Tobias,

NO problem on the soldering and electronics. I'm an electrical engineer

Alright;) Thats good. I have a math / comp. science background .. so I guess we have all the know-how to get that job done;)

by training. I will use a current transformer. Here's a good post for
what I will do:
http://openenergymonitor.org/emon/node/58

I have been reading that post and the code here

https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino
https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp

It's easy to follow and it'll be a straightforward to wrap that up into something that can communicate with Autobahn/Crossbar.io over serial and expose that in real-time via WebSocket to a HTML5 page where data then can be rendered in some fancy real-time animated charts.

As a start, I have written a so-called "electronic datasheet" (EDS) for the open energy monitor:

https://github.com/tavendo/SRDP/blob/master/python/srdp/srdp/eds/devices/energymonitor.json

This is the basis for SRDP. We can then have any number of instances of above "virtual device" on a single concrete board - like say 4 monitors to concurrently monitor 4 electrical consumers.

The definition of such a board is done via "adapter EDS" .. whereas above is "device EDS".

Turns out that they posted my blog on the arduino twitter and google
plus feed, so this project will certainly get some airplay since the one
forum thread on websockets over on the arduino yun blog has 1500 reads.

Awesome, well done;)

Btw: the Yun is on the way .. they are fast. Maybe tomorrow or day thereafter.

Now, ideally, we'd both have not only the same Yun but also the same open power monitor extension .. otherwise software dev. will be harder .. no "real" hardware. Do you think you could make me an open power monitor board (if I'd pay for material) and send it to me? I guess you are in the US? Or do you see another way?

/Tobias

···

Am 25.11.2013 19:06, schrieb Peter Kalajian:

Pete

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

    Tobias,

    Ok now that I have the example echo client and server running, I'd
    like to figure out how to use the bridge library to connect the
    arduino processor's serial datastream to the linino processor
    running the serial2ws.py server. I wonder if you are willing to take
    a look a the bridge library over at arduino and see if you can
    figure out how we can talk to the arduino side. I know there are
    lots of folks who would like to know. I'd be willing to write a
    detailed blog post of how I got it to work if you can help.

    Cheers,

    Pete

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#7

Tobias,

Sure, I can make a set of shield boards that would sit on the arduino yun board. Would be cool because we could take power from the voltage transformer thru a voltage regulator to power the yun. I’ll put together a bill of material and costs and let you know.

As far as the bridge code: I see that there are several examples of folks trying to use the tcp port to connect the linux side to the arduino side. Here’s the forum thread: http://forum.arduino.cc/index.php?topic=194934.0.

We should probably make a simple test circuit with a potentiometer as voltage divider on an analog pin without any math processing on the yun at first to test the basic bridge websocket. In other words, just read two analog pin A1 , and display the raw value (10 bit resolution) with the smoothy.js implementation. Once we get that up and running, we can continue with the full implementation. Here’s basic arduino code (for a simple serial implementation)

http://arduino.cc/en/Tutorial/AnalogReadSerial

Clearly, we won’t be using the same sort of serial monitor, but the rest of the code is the idea.

With a simple test like this, we will know quickly whether the websocket can read pin data and post it quickly.

What do you think?

Pete

···

On Mon, Nov 25, 2013 at 5:06 PM, Tobias Oberstein tobias.o...@gmail.com wrote:

Hi Peter,

Am 25.11.2013 19:06, schrieb Peter Kalajian:

Tobias,

NO problem on the soldering and electronics. I’m an electrical engineer

Alright;) Thats good. I have a math / comp. science background … so I guess we have all the know-how to get that job done;)

by training. I will use a current transformer. Here’s a good post for

what I will do:

http://openenergymonitor.org/emon/node/58

I have been reading that post and the code here

https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino

https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp

It’s easy to follow and it’ll be a straightforward to wrap that up into something that can communicate with Autobahn/Crossbar.io over serial and expose that in real-time via WebSocket to a HTML5 page where data then can be rendered in some fancy real-time animated charts.

As a start, I have written a so-called “electronic datasheet” (EDS) for the open energy monitor:

https://github.com/tavendo/SRDP/blob/master/python/srdp/srdp/eds/devices/energymonitor.json

This is the basis for SRDP. We can then have any number of instances of above “virtual device” on a single concrete board - like say 4 monitors to concurrently monitor 4 electrical consumers.

The definition of such a board is done via “adapter EDS” … whereas above is “device EDS”.

Turns out that they posted my blog on the arduino twitter and google

plus feed, so this project will certainly get some airplay since the one

forum thread on websockets over on the arduino yun blog has 1500 reads.

Awesome, well done;)

Btw: the Yun is on the way … they are fast. Maybe tomorrow or day thereafter.

Now, ideally, we’d both have not only the same Yun but also the same open power monitor extension … otherwise software dev. will be harder … no “real” hardware. Do you think you could make me an open power monitor board (if I’d pay for material) and send it to me? I guess you are in the US? Or do you see another way?

/Tobias

Pete

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

Tobias,



Ok now that I have the example echo client and server running, I'd

like to figure out how to use the bridge library to connect the

arduino processor's serial datastream to the linino processor

running the serial2ws.py server. I wonder if you are willing to take

a look a the bridge library over at arduino and see if you can

figure out how we can talk to the arduino side. I know there are

lots of folks who would like to know. I'd be willing to write a

detailed blog post of how I got it to work if you can help.



Cheers,



Pete

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#8

Tobias,

Hey, these guys already have a board setup with everything we need, and also if we get the code running, they would love to have it! http://openenergymonitor.org/emon/emontxshield/smt.

I can order a couple of them and put them together, and send you one.

Pete

···

On Mon, Nov 25, 2013 at 6:40 PM, Peter Kalajian aln...@gwi.net wrote:

Tobias,

Sure, I can make a set of shield boards that would sit on the arduino yun board. Would be cool because we could take power from the voltage transformer thru a voltage regulator to power the yun. I’ll put together a bill of material and costs and let you know.

As far as the bridge code: I see that there are several examples of folks trying to use the tcp port to connect the linux side to the arduino side. Here’s the forum thread: http://forum.arduino.cc/index.php?topic=194934.0.

We should probably make a simple test circuit with a potentiometer as voltage divider on an analog pin without any math processing on the yun at first to test the basic bridge websocket. In other words, just read two analog pin A1 , and display the raw value (10 bit resolution) with the smoothy.js implementation. Once we get that up and running, we can continue with the full implementation. Here’s basic arduino code (for a simple serial implementation)

http://arduino.cc/en/Tutorial/AnalogReadSerial

Clearly, we won’t be using the same sort of serial monitor, but the rest of the code is the idea.

With a simple test like this, we will know quickly whether the websocket can read pin data and post it quickly.

What do you think?

Pete

On Mon, Nov 25, 2013 at 5:06 PM, Tobias Oberstein tobias.o...@gmail.com wrote:

Hi Peter,

Am 25.11.2013 19:06, schrieb Peter Kalajian:

Tobias,

NO problem on the soldering and electronics. I’m an electrical engineer

Alright;) Thats good. I have a math / comp. science background … so I guess we have all the know-how to get that job done;)

by training. I will use a current transformer. Here’s a good post for

what I will do:

http://openenergymonitor.org/emon/node/58

I have been reading that post and the code here

https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino

https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp

It’s easy to follow and it’ll be a straightforward to wrap that up into something that can communicate with Autobahn/Crossbar.io over serial and expose that in real-time via WebSocket to a HTML5 page where data then can be rendered in some fancy real-time animated charts.

As a start, I have written a so-called “electronic datasheet” (EDS) for the open energy monitor:

https://github.com/tavendo/SRDP/blob/master/python/srdp/srdp/eds/devices/energymonitor.json

This is the basis for SRDP. We can then have any number of instances of above “virtual device” on a single concrete board - like say 4 monitors to concurrently monitor 4 electrical consumers.

The definition of such a board is done via “adapter EDS” … whereas above is “device EDS”.

Turns out that they posted my blog on the arduino twitter and google

plus feed, so this project will certainly get some airplay since the one

forum thread on websockets over on the arduino yun blog has 1500 reads.

Awesome, well done;)

Btw: the Yun is on the way … they are fast. Maybe tomorrow or day thereafter.

Now, ideally, we’d both have not only the same Yun but also the same open power monitor extension … otherwise software dev. will be harder … no “real” hardware. Do you think you could make me an open power monitor board (if I’d pay for material) and send it to me? I guess you are in the US? Or do you see another way?

/Tobias

Pete

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

Tobias,



Ok now that I have the example echo client and server running, I'd

like to figure out how to use the bridge library to connect the

arduino processor's serial datastream to the linino processor

running the serial2ws.py server. I wonder if you are willing to take

a look a the bridge library over at arduino and see if you can

figure out how we can talk to the arduino side. I know there are

lots of folks who would like to know. I'd be willing to write a

detailed blog post of how I got it to work if you can help.



Cheers,



Pete

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#9

Hi Peter,

Tobias,

Hey, these guys already have a board setup with everything we need, and
also if we get the code running, they would love to have it!
http://openenergymonitor.org/emon/emontxshield/smt.

Cool! That's even better. I have looked at it .. would order right away, but have questions .. probably you know?

1)
"""
Apparent Power, Real Power*, Power Factor* and AC RMS voltage readings*
* with 9V AC adapter
"""

Why is it that 3 of the 4 are only available with 9V AC adapter? And what's that? I mean I know what's an AC Adapter is, but how does that work in combination with the Yun? Will an 9V AC adapter then power both the shield and the Yun?

2)
The say all SMD is presoldered .. so I only need to solder the "easy" stuff like connnectors and such, right? The latter I can let a friend of mine do .. that would probably be easier than sending the shield from UK to US, you solder it, and send it to Germany;)

3)
Those "CT Clips" .. what's that? Is it:
http://shop.openenergymonitor.com/100a-max-clip-on-current-sensor-ct/

Can I "clip" those onto standard power wires like to my PC or TV to measure power? We have 220V here in Germany, will that work also? And that CT thing doesn't in any way cut into the power wire?

And I can have 4 of those connected to 1 shield to get measurements for 4 consumers at the same time?

And: is it safe? I mean, can I shoot myself tinkering with this stuff? :wink:

4)
They say "Expected release date is 1st Dec 2013" .. did you order already?

I can order a couple of them and put them together, and send you one.

If it's non-SMS, I have a friend around the corner here you made this
https://github.com/tavendo/SRDP/blob/master/arduino/demoboard/demoboard.jpg
for us. Probably easier, but thanks for offering!

/Tobias

···

Am 26.11.2013 01:04, schrieb Peter Kalajian:

Pete

On Mon, Nov 25, 2013 at 6:40 PM, Peter Kalajian <aln...@gwi.net > <mailto:aln...@gwi.net>> wrote:

    Tobias,

    Sure, I can make a set of shield boards that would sit on the
    arduino yun board. Would be cool because we could take power from
    the voltage transformer thru a voltage regulator to power the yun.
    I'll put together a bill of material and costs and let you know.

    As far as the bridge code: I see that there are several examples of
    folks trying to use the tcp port to connect the linux side to the
    arduino side. Here's the forum thread:
    http://forum.arduino.cc/index.php?topic=194934.0.

    We should probably make a simple test circuit with a potentiometer
    as voltage divider on an analog pin without any math processing on
    the yun at first to test the basic bridge websocket. In other words,
    just read two analog pin A1 , and display the raw value (10 bit
    resolution) with the smoothy.js implementation. Once we get that up
    and running, we can continue with the full implementation. Here's
    basic arduino code (for a simple serial implementation)

    http://arduino.cc/en/Tutorial/AnalogReadSerial

    Clearly, we won't be using the same sort of serial monitor, but the
    rest of the code is the idea.

    With a simple test like this, we will know quickly whether the
    websocket can read pin data and post it quickly.

    What do you think?

    Pete

    On Mon, Nov 25, 2013 at 5:06 PM, Tobias Oberstein > <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> wrote:

        Hi Peter,

        Am 25.11.2013 19:06, schrieb Peter Kalajian:

            Tobias,

            NO problem on the soldering and electronics. I'm an
            electrical engineer

        Alright;) Thats good. I have a math / comp. science background
        .. so I guess we have all the know-how to get that job done;)

            by training. I will use a current transformer. Here's a good
            post for
            what I will do:
            http://openenergymonitor.org/__emon/node/58
            <http://openenergymonitor.org/emon/node/58>

        I have been reading that post and the code here

        https://github.com/__openenergymonitor/EmonLib/__blob/master/examples/voltage___and_current/voltage_and___current.ino
        <https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino>
        https://github.com/__openenergymonitor/EmonLib/__blob/master/EmonLib.cpp
        <https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp>

        It's easy to follow and it'll be a straightforward to wrap that
        up into something that can communicate with Autobahn/Crossbar.io
        over serial and expose that in real-time via WebSocket to a
        HTML5 page where data then can be rendered in some fancy
        real-time animated charts.

        As a start, I have written a so-called "electronic datasheet"
        (EDS) for the open energy monitor:

        https://github.com/tavendo/__SRDP/blob/master/python/srdp/__srdp/eds/devices/__energymonitor.json
        <https://github.com/tavendo/SRDP/blob/master/python/srdp/srdp/eds/devices/energymonitor.json>

        This is the basis for SRDP. We can then have any number of
        instances of above "virtual device" on a single concrete board -
        like say 4 monitors to concurrently monitor 4 electrical consumers.

        The definition of such a board is done via "adapter EDS" ..
        whereas above is "device EDS".

            Turns out that they posted my blog on the arduino twitter
            and google
            plus feed, so this project will certainly get some airplay
            since the one
            forum thread on websockets over on the arduino yun blog has
            1500 reads.

        Awesome, well done;)

        Btw: the Yun is on the way .. they are fast. Maybe tomorrow or
        day thereafter.

        Now, ideally, we'd both have not only the same Yun but also the
        same open power monitor extension .. otherwise software dev.
        will be harder .. no "real" hardware. Do you think you could
        make me an open power monitor board (if I'd pay for material)
        and send it to me? I guess you are in the US? Or do you see
        another way?

        /Tobias

            Pete

            On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter > Kalajian wrote:

                 Tobias,

                 Ok now that I have the example echo client and server
            running, I'd
                 like to figure out how to use the bridge library to
            connect the
                 arduino processor's serial datastream to the linino
            processor
                 running the serial2ws.py server. I wonder if you are
            willing to take
                 a look a the bridge library over at arduino and see if
            you can
                 figure out how we can talk to the arduino side. I know
            there are
                 lots of folks who would like to know. I'd be willing to
            write a
                 detailed blog post of how I got it to work if you can help.

                 Cheers,

                 Pete

            --
            You received this message because you are subscribed to the
            Google
            Groups "Autobahn" group.
            To unsubscribe from this group and stop receiving emails
            from it, send

            an email to autobahnws+unsubscribe@__googlegroups.com
            <mailto:autobahnws%2...@googlegroups.com>.
            For more options, visit
            https://groups.google.com/__groups/opt_out
            <https://groups.google.com/groups/opt_out>.

        --
        You received this message because you are subscribed to a topic
        in the Google Groups "Autobahn" group.
        To unsubscribe from this topic, visit
        https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe
        <https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe>.
        To unsubscribe from this group and all its topics, send an email
        to autobahnws+unsubscribe@__googlegroups.com
        <mailto:autobahnws%2...@googlegroups.com>.
        For more options, visit
        https://groups.google.com/__groups/opt_out
        <https://groups.google.com/groups/opt_out>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#10

Tobias,

Sure, I can make a set of shield boards that would sit on the arduino
yun board. Would be cool because we could take power from the voltage
transformer thru a voltage regulator to power the yun. I'll put together
a bill of material and costs and let you know.

As far as the bridge code: I see that there are several examples of
folks trying to use the tcp port to connect the linux side to the
arduino side. Here's the forum thread:
http://forum.arduino.cc/index.php?topic=194934.0.

There seems to be quite some confusion there;)

No, I (currently) think the right direction in this:

http://forum.arduino.cc//index.php?topic=191820.0

There is a TTY started at boot time on the CPU/Linux side that "occupies" the plain old serial to the MCU.

Above posts talks about how to turn that off, which then opens the possibility to talk raw serial to the MCU.

This makes sense, and I'd try that first.

And in fact, that's similar to how consumer routers with OpenWRT work, e.g. Linksys WRT54:

https://forum.openwrt.org/viewtopic.php?id=15165
http://wiki.openwrt.org/toh/linksys/wrt54g#serial.port

The second thing we need to get figured: the Yun has Wifi and Ethernet. The Wifi: can it act as a _client_ (not AP) connecting to an upstream Wifi AP? It needs to get an IP address via DHCP and such.

Those 2 issues above are the main "roadblocks" (rgd the software/cloud side). If we can figure those out, the rest is straightforward:

Have an Autobahn-based gateway started at boot time that talks serial (SRDP) to the MCU and WAMP to a cloud-based Autobahn server. The HTML5 page will then talk to the latter server. That will get us the real-time charting.

We should probably make a simple test circuit with a potentiometer as
voltage divider on an analog pin without any math processing on the yun
at first to test the basic bridge websocket. In other words, just read
two analog pin A1 , and display the raw value (10 bit resolution) with
the smoothy.js implementation. Once we get that up and running, we can
continue with the full implementation. Here's basic arduino code (for a
simple serial implementation)

http://arduino.cc/en/Tutorial/AnalogReadSerial

Clearly, we won't be using the same sort of serial monitor, but the rest
of the code is the idea.

With a simple test like this, we will know quickly whether the websocket
can read pin data and post it quickly.

What do you think?

Yep, that's fine .. first try to get _something_ working on the Yun: that would be essentially the serial2ws example ported to the Yun.

2nd: get the SRDP stuff ported.

3rd: Energy monitor.

If we get raw serial working between the MCU and CPU on the Yun, we'll get the rest done also.

···

Am 26.11.2013 00:40, schrieb Peter Kalajian:

Pete

On Mon, Nov 25, 2013 at 5:06 PM, Tobias Oberstein > <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> wrote:

    Hi Peter,

    Am 25.11.2013 19:06, schrieb Peter Kalajian:

        Tobias,

        NO problem on the soldering and electronics. I'm an electrical
        engineer

    Alright;) Thats good. I have a math / comp. science background .. so
    I guess we have all the know-how to get that job done;)

        by training. I will use a current transformer. Here's a good
        post for
        what I will do:
        http://openenergymonitor.org/__emon/node/58
        <http://openenergymonitor.org/emon/node/58>

    I have been reading that post and the code here

    https://github.com/__openenergymonitor/EmonLib/__blob/master/examples/voltage___and_current/voltage_and___current.ino
    <https://github.com/openenergymonitor/EmonLib/blob/master/examples/voltage_and_current/voltage_and_current.ino>
    https://github.com/__openenergymonitor/EmonLib/__blob/master/EmonLib.cpp
    <https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp>

    It's easy to follow and it'll be a straightforward to wrap that up
    into something that can communicate with Autobahn/Crossbar.io over
    serial and expose that in real-time via WebSocket to a HTML5 page
    where data then can be rendered in some fancy real-time animated charts.

    As a start, I have written a so-called "electronic datasheet" (EDS)
    for the open energy monitor:

    https://github.com/tavendo/__SRDP/blob/master/python/srdp/__srdp/eds/devices/__energymonitor.json
    <https://github.com/tavendo/SRDP/blob/master/python/srdp/srdp/eds/devices/energymonitor.json>

    This is the basis for SRDP. We can then have any number of instances
    of above "virtual device" on a single concrete board - like say 4
    monitors to concurrently monitor 4 electrical consumers.

    The definition of such a board is done via "adapter EDS" .. whereas
    above is "device EDS".

        Turns out that they posted my blog on the arduino twitter and google
        plus feed, so this project will certainly get some airplay since
        the one
        forum thread on websockets over on the arduino yun blog has 1500
        reads.

    Awesome, well done;)

    Btw: the Yun is on the way .. they are fast. Maybe tomorrow or day
    thereafter.

    Now, ideally, we'd both have not only the same Yun but also the same
    open power monitor extension .. otherwise software dev. will be
    harder .. no "real" hardware. Do you think you could make me an open
    power monitor board (if I'd pay for material) and send it to me? I
    guess you are in the US? Or do you see another way?

    /Tobias

        Pete

        On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

             Tobias,

             Ok now that I have the example echo client and server
        running, I'd
             like to figure out how to use the bridge library to connect the
             arduino processor's serial datastream to the linino processor
             running the serial2ws.py server. I wonder if you are
        willing to take
             a look a the bridge library over at arduino and see if you can
             figure out how we can talk to the arduino side. I know
        there are
             lots of folks who would like to know. I'd be willing to write a
             detailed blog post of how I got it to work if you can help.

             Cheers,

             Pete

        --
        You received this message because you are subscribed to the Google
        Groups "Autobahn" group.
        To unsubscribe from this group and stop receiving emails from
        it, send

        an email to autobahnws+unsubscribe@__googlegroups.com
        <mailto:autobahnws%2...@googlegroups.com>.
        For more options, visit
        https://groups.google.com/__groups/opt_out
        <https://groups.google.com/groups/opt_out>.

    --
    You received this message because you are subscribed to a topic in
    the Google Groups "Autobahn" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe
    <https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe>.
    To unsubscribe from this group and all its topics, send an email to
    autobahnws+unsubscribe@__googlegroups.com
    <mailto:autobahnws%2...@googlegroups.com>.
    For more options, visit https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#11

Tobias,

The 9v transformer is so that you can measure the voltage to do the power calculations. Power is voltage X current, so you need both a way to measure the house voltage and a way to measure the house current. You might have to get a 220V ac version of the transformer, but you probably have one sitting around from an old piece of electronics. Think wall wart.

Looks like the smd parts are already soldered, so just simple through-board soldering.

The CT (current transformer) is really just a piece of iron wrapped around an AC wire that is inductively coupled so that a small current is generated that is proportional to the current in the wire. You just open it up, clip it around the wire, and shut it. It is non-invasive, meaning you don’t have to cut any wires. There are 4 jacks, so you could measure the current (and consequently) power for four separate circuits. It is relatively safe, since you only have to clip it around the wires. I’d cut the main power before I got my hands in the AC distribution box to put these transformers around the wires, but really, there’s little danger.

I think you are correct that it makes sense for each of us to order one. I’ll order mine today.

Cheers,

Pete

···

On Sunday, November 24, 2013 4:19:12 PM UTC-5, Peter Kalajian wrote:

Tobias,

Ok now that I have the example echo client and server running, I’d like to figure out how to use the bridge library to connect the arduino processor’s serial datastream to the linino processor running the serial2ws.py server. I wonder if you are willing to take a look a the bridge library over at arduino and see if you can figure out how we can talk to the arduino side. I know there are lots of folks who would like to know. I’d be willing to write a detailed blog post of how I got it to work if you can help.

Cheers,

Pete

0 Likes

#12

Hi Peter,

> The 9v transformer is so that you can measure the voltage to do the

power calculations. Power is voltage X current, so you need both a way

Not sure I get that:
So the 9v transformer isn't to actually provide power to run the Arduino board, but only to sense the 110/220v house power line _voltage_?

And if so, that "9v tranformer": if it has an output voltage regulator that keeps the voltage at 9v strict, how could it be used to sense variations of the 110/220v supply voltage running into that 9v power supply? Or does it need to be really only a transformer without any regulation to make that work?

Mmh. And in any case: even if there would be no voltage regulator in that 9v thingy, isn't it terribly inaccurate to infere the 110/220v variations indirectly from variations in the 9v?

/Tobias

0 Likes

#13

Tobias,

The transformer does not have regulation, and it uses the principle of magnetic induction in exactly the same way as the current transformer does, except to measure a proportion of the voltage. So if the 220 volts from the line varies by 2 volts, the output of the transformer will vary by 2 x 9/220 volts in a very proportional way.

I’m not sure about powering the Yun. I looked at the schematic and it is not clear whether they have included a 5 VDC regulator on the board. I have emailed them to ask. If they don’t it will be a simple matter to add one.

···

On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein tobias.o...@gmail.com wrote:

Hi Peter,

The 9v transformer is so that you can measure the voltage to do the
power calculations. Power is voltage X current, so you need both a way

Not sure I get that:

So the 9v transformer isn’t to actually provide power to run the Arduino board, but only to sense the 110/220v house power line voltage?

And if so, that “9v tranformer”: if it has an output voltage regulator that keeps the voltage at 9v strict, how could it be used to sense variations of the 110/220v supply voltage running into that 9v power supply? Or does it need to be really only a transformer without any regulation to make that work?

Mmh. And in any case: even if there would be no voltage regulator in that 9v thingy, isn’t it terribly inaccurate to infere the 110/220v variations indirectly from variations in the 9v?

/Tobias

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#14

Hi Peter,

I'm right now still on a business trip, will be back late in the evening, but the Yun arrived shortly before I had to leave and I had time for an hour to check it out: here are my findings:

https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md

I'll order an open energy monitor board now with 4 CTs, but until that arrives: do you know if the Yun has some kind of internal/builtin sensor like an onboard temp. or voltage sensor that we could read out and connect up to Autobahn etc as a start? So I could make some small program that will work for both of us ..

Cheers,
/Tobias

···

Am 27.11.2013 14:45, schrieb Peter Kalajian:

Tobias,

The transformer does not have regulation, and it uses the principle of
magnetic induction in exactly the same way as the current transformer
does, except to measure a proportion of the voltage. So if the 220 volts
from the line varies by 2 volts, the output of the transformer will vary
by 2 x 9/220 volts in a very proportional way.

I'm not sure about powering the Yun. I looked at the schematic and it is
not clear whether they have included a 5 VDC regulator on the board. I
have emailed them to ask. If they don't it will be a simple matter to
add one.

On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein > <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> wrote:

    Hi Peter,

     > The 9v transformer is so that you can measure the voltage to do the

        power calculations. Power is voltage X current, so you need both
        a way

    Not sure I get that:
    So the 9v transformer isn't to actually provide power to run the
    Arduino board, but only to sense the 110/220v house power line
    _voltage_?

    And if so, that "9v tranformer": if it has an output voltage
    regulator that keeps the voltage at 9v strict, how could it be used
    to sense variations of the 110/220v supply voltage running into that
    9v power supply? Or does it need to be really only a transformer
    without any regulation to make that work?

    Mmh. And in any case: even if there would be no voltage regulator in
    that 9v thingy, isn't it terribly inaccurate to infere the 110/220v
    variations indirectly from variations in the 9v?

    /Tobias

    --
    You received this message because you are subscribed to a topic in
    the Google Groups "Autobahn" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe
    <https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe>.
    To unsubscribe from this group and all its topics, send an email to
    autobahnws+unsubscribe@__googlegroups.com
    <mailto:autobahnws%2...@googlegroups.com>.
    For more options, visit https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#15

Tobias.

There is no onboard sensor, but it is trivial to hook up a thermistor and a resistor in a voltage divider and connect it to an analog pin. I’ll send you a link in a minute.

···

On Thursday, November 28, 2013, Tobias Oberstein wrote:

Hi Peter,

I’m right now still on a business trip, will be back late in the evening, but the Yun arrived shortly before I had to leave and I had time for an hour to check it out: here are my findings:

https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md

I’ll order an open energy monitor board now with 4 CTs, but until that arrives: do you know if the Yun has some kind of internal/builtin sensor like an onboard temp. or voltage sensor that we could read out and connect up to Autobahn etc as a start? So I could make some small program that will work for both of us …

Cheers,

/Tobias

Am 27.11.2013 14:45, schrieb Peter Kalajian:

Tobias,

The transformer does not have regulation, and it uses the principle of

magnetic induction in exactly the same way as the current transformer

does, except to measure a proportion of the voltage. So if the 220 volts

from the line varies by 2 volts, the output of the transformer will vary

by 2 x 9/220 volts in a very proportional way.

I’m not sure about powering the Yun. I looked at the schematic and it is

not clear whether they have included a 5 VDC regulator on the board. I

have emailed them to ask. If they don’t it will be a simple matter to

add one.

On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein > > > > <tobias.o...@gmail.com mailto:tobias.o...@gmail.com> wrote:

Hi Peter,



 > The 9v transformer is so that you can measure the voltage to do the



    power calculations. Power is voltage X current, so you need both

    a way





Not sure I get that:

So the 9v transformer isn't to actually provide power to run the

Arduino board, but only to sense the 110/220v house power line

_voltage_?



And if so, that "9v tranformer": if it has an output voltage

regulator that keeps the voltage at 9v strict, how could it be used

to sense variations of the 110/220v supply voltage running into that

9v power supply? Or does it need to be really only a transformer

without any regulation to make that work?



Mmh. And in any case: even if there would be no voltage regulator in

that 9v thingy, isn't it terribly inaccurate to infere the 110/220v

variations indirectly from variations in the 9v?



/Tobias



--

You received this message because you are subscribed to a topic in

the Google Groups "Autobahn" group.

To unsubscribe from this topic, visit

[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

<[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>.

To unsubscribe from this group and all its topics, send an email to

autobahnws+unsubscribe@__[googlegroups.com](http://googlegroups.com)

<mailto:autobahnws%2...@googlegroups.com>.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#16

Here’s the link to a tutorial using a temperature sensor:

http://learn.adafruit.com/tmp36-temperature-sensor/using-a-temp-sensor

···

On Thu, Nov 28, 2013 at 8:19 AM, Peter Kalajian aln...@gwi.net wrote:

Tobias.
There is no onboard sensor, but it is trivial to hook up a thermistor and a resistor in a voltage divider and connect it to an analog pin. I’ll send you a link in a minute.

On Thursday, November 28, 2013, Tobias Oberstein wrote:

Hi Peter,

I’m right now still on a business trip, will be back late in the evening, but the Yun arrived shortly before I had to leave and I had time for an hour to check it out: here are my findings:

https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md

I’ll order an open energy monitor board now with 4 CTs, but until that arrives: do you know if the Yun has some kind of internal/builtin sensor like an onboard temp. or voltage sensor that we could read out and connect up to Autobahn etc as a start? So I could make some small program that will work for both of us …

Cheers,

/Tobias

Am 27.11.2013 14:45, schrieb Peter Kalajian:

Tobias,

The transformer does not have regulation, and it uses the principle of

magnetic induction in exactly the same way as the current transformer

does, except to measure a proportion of the voltage. So if the 220 volts

from the line varies by 2 volts, the output of the transformer will vary

by 2 x 9/220 volts in a very proportional way.

I’m not sure about powering the Yun. I looked at the schematic and it is

not clear whether they have included a 5 VDC regulator on the board. I

have emailed them to ask. If they don’t it will be a simple matter to

add one.

On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein

<tobias.o...@gmail.com mailto:tobias.o...@gmail.com> wrote:

Hi Peter,



 > The 9v transformer is so that you can measure the voltage to do the



    power calculations. Power is voltage X current, so you need both

    a way





Not sure I get that:

So the 9v transformer isn't to actually provide power to run the

Arduino board, but only to sense the 110/220v house power line

_voltage_?



And if so, that "9v tranformer": if it has an output voltage

regulator that keeps the voltage at 9v strict, how could it be used

to sense variations of the 110/220v supply voltage running into that

9v power supply? Or does it need to be really only a transformer

without any regulation to make that work?



Mmh. And in any case: even if there would be no voltage regulator in

that 9v thingy, isn't it terribly inaccurate to infere the 110/220v

variations indirectly from variations in the 9v?



/Tobias



--

You received this message because you are subscribed to a topic in

the Google Groups "Autobahn" group.

To unsubscribe from this topic, visit

[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

<[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>.

To unsubscribe from this group and all its topics, send an email to

autobahnws+unsubscribe@__[googlegroups.com](http://googlegroups.com)

<mailto:autobahnws%2...@googlegroups.com>.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#17

Tobias, I was able to get all the python lobs for autobahn loaded on the flash, but better the way you are doing it.

···

On Thursday, November 28, 2013, Tobias Oberstein wrote:

Hi Peter,

I’m right now still on a business trip, will be back late in the evening, but the Yun arrived shortly before I had to leave and I had time for an hour to check it out: here are my findings:

https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md

I’ll order an open energy monitor board now with 4 CTs, but until that arrives: do you know if the Yun has some kind of internal/builtin sensor like an onboard temp. or voltage sensor that we could read out and connect up to Autobahn etc as a start? So I could make some small program that will work for both of us …

Cheers,

/Tobias

Am 27.11.2013 14:45, schrieb Peter Kalajian:

Tobias,

The transformer does not have regulation, and it uses the principle of

magnetic induction in exactly the same way as the current transformer

does, except to measure a proportion of the voltage. So if the 220 volts

from the line varies by 2 volts, the output of the transformer will vary

by 2 x 9/220 volts in a very proportional way.

I’m not sure about powering the Yun. I looked at the schematic and it is

not clear whether they have included a 5 VDC regulator on the board. I

have emailed them to ask. If they don’t it will be a simple matter to

add one.

On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein > > > > <tobias.o...@gmail.com mailto:tobias.o...@gmail.com> wrote:

Hi Peter,



 > The 9v transformer is so that you can measure the voltage to do the



    power calculations. Power is voltage X current, so you need both

    a way





Not sure I get that:

So the 9v transformer isn't to actually provide power to run the

Arduino board, but only to sense the 110/220v house power line

_voltage_?



And if so, that "9v tranformer": if it has an output voltage

regulator that keeps the voltage at 9v strict, how could it be used

to sense variations of the 110/220v supply voltage running into that

9v power supply? Or does it need to be really only a transformer

without any regulation to make that work?



Mmh. And in any case: even if there would be no voltage regulator in

that 9v thingy, isn't it terribly inaccurate to infere the 110/220v

variations indirectly from variations in the 9v?



/Tobias



--

You received this message because you are subscribed to a topic in

the Google Groups "Autobahn" group.

To unsubscribe from this topic, visit

[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

<[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>.

To unsubscribe from this group and all its topics, send an email to

autobahnws+unsubscribe@__[googlegroups.com](http://googlegroups.com)

<mailto:autobahnws%2...@googlegroups.com>.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#18

Tobias, I was able to get all the python lobs for autobahn loaded on the
flash, but better the way you are doing it.

Hi Peter,

I've written a (preview) blog post on settings things up on the Yun:

http://tavendo.com/blog/post/arduino-yun-getting-started-part-1/

It would be awesome if you could review that a little, give feedback and ideally retry that recipe step by step on your Yun after resetting your Yun (and the Linux thereon) to factory default (which is also described in the preview post).

The reason is twofold: I think it would be good if we can make sure that above recipe doesn't contain "bugs" (I did quite some experimenting, and I'm not sure I wrote down everything correctly). There are enough subtle steps where things can go wrong, and if the recipe isn't reliable, that sucks.

And: Honestly, I'm not fully convinced that you got everything installed cleanly and fully the way you did -- read: I'd actually be surprised if so;)

Ah, pls don't (yet) distribute the link ..

I'll now take on the serial stuff and SRDP.

Cheers,
/Tobias

···

Am 28.11.2013 18:29, schrieb Peter Kalajian:

On Thursday, November 28, 2013, Tobias Oberstein wrote:

    Hi Peter,

    I'm right now still on a business trip, will be back late in the
    evening, but the Yun arrived shortly before I had to leave and I had
    time for an hour to check it out: here are my findings:

    https://github.com/oberstet/__scratchbox/blob/master/docs/__misc/yun.md
    <https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md>

    I'll order an open energy monitor board now with 4 CTs, but until
    that arrives: do you know if the Yun has some kind of
    internal/builtin sensor like an onboard temp. or voltage sensor that
    we could read out and connect up to Autobahn etc as a start? So I
    could make some small program that will work for both of us ..

    Cheers,
    /Tobias

    Am 27.11.2013 14:45, schrieb Peter Kalajian:

        Tobias,

        The transformer does not have regulation, and it uses the
        principle of
        magnetic induction in exactly the same way as the current
        transformer
        does, except to measure a proportion of the voltage. So if the
        220 volts
        from the line varies by 2 volts, the output of the transformer
        will vary
        by 2 x 9/220 volts in a very proportional way.

        I'm not sure about powering the Yun. I looked at the schematic
        and it is
        not clear whether they have included a 5 VDC regulator on the
        board. I
        have emailed them to ask. If they don't it will be a simple
        matter to
        add one.

        On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein > <tobias.o...@gmail.com <mailto:tobias.o...@gmail.com>> > wrote:

             Hi Peter,

              > The 9v transformer is so that you can measure the
        voltage to do the

                 power calculations. Power is voltage X current, so you
        need both
                 a way

             Not sure I get that:
             So the 9v transformer isn't to actually provide power to
        run the
             Arduino board, but only to sense the 110/220v house power line
             _voltage_?

             And if so, that "9v tranformer": if it has an output voltage
             regulator that keeps the voltage at 9v strict, how could it
        be used
             to sense variations of the 110/220v supply voltage running
        into that
             9v power supply? Or does it need to be really only a
        transformer
             without any regulation to make that work?

             Mmh. And in any case: even if there would be no voltage
        regulator in
             that 9v thingy, isn't it terribly inaccurate to infere the
        110/220v
             variations indirectly from variations in the 9v?

             /Tobias

             --
             You received this message because you are subscribed to a
        topic in
             the Google Groups "Autobahn" group.
             To unsubscribe from this topic, visit
        https://groups.google.com/d/____topic/autobahnws/B3L4N2J7Jac/____unsubscribe
        <https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe>

        <https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe
        <https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe>>.
             To unsubscribe from this group and all its topics, send an
        email to
             autobahnws+unsubscribe@__googl__egroups.com
        <http://googlegroups.com>
             <mailto:autobahnws%2...@googlegroups.com>.
             For more options, visit
        https://groups.google.com/____groups/opt_out
        <https://groups.google.com/__groups/opt_out>
             <https://groups.google.com/__groups/opt_out
        <https://groups.google.com/groups/opt_out>>.

        --
        You received this message because you are subscribed to the Google
        Groups "Autobahn" group.
        To unsubscribe from this group and stop receiving emails from
        it, send
        an email to autobahnws+...@googlegroups.com.
        For more options, visit
        https://groups.google.com/__groups/opt_out
        <https://groups.google.com/groups/opt_out>.

    --
    You received this message because you are subscribed to a topic in
    the Google Groups "Autobahn" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe
    <https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe>.
    To unsubscribe from this group and all its topics, send an email to
    autobahnws+...@googlegroups.com.
    For more options, visit https://groups.google.com/__groups/opt_out
    <https://groups.google.com/groups/opt_out>.

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#19

OK, I was just working on following your steps, so I’ll continue.

Pete

···

On Fri, Nov 29, 2013 at 5:17 PM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 28.11.2013 18:29, schrieb Peter Kalajian:

Tobias, I was able to get all the python lobs for autobahn loaded on the

flash, but better the way you are doing it.

Hi Peter,

I’ve written a (preview) blog post on settings things up on the Yun:

http://tavendo.com/blog/post/arduino-yun-getting-started-part-1/

It would be awesome if you could review that a little, give feedback and ideally retry that recipe step by step on your Yun after resetting your Yun (and the Linux thereon) to factory default (which is also described in the preview post).

The reason is twofold: I think it would be good if we can make sure that above recipe doesn’t contain “bugs” (I did quite some experimenting, and I’m not sure I wrote down everything correctly). There are enough subtle steps where things can go wrong, and if the recipe isn’t reliable, that sucks.

And: Honestly, I’m not fully convinced that you got everything installed cleanly and fully the way you did – read: I’d actually be surprised if so;)

Ah, pls don’t (yet) distribute the link …

I’ll now take on the serial stuff and SRDP.

Cheers,

/Tobias

On Thursday, November 28, 2013, Tobias Oberstein wrote:

Hi Peter,



I'm right now still on a business trip, will be back late in the

evening, but the Yun arrived shortly before I had to leave and I had

time for an hour to check it out: here are my findings:

https://github.com/oberstet/__scratchbox/blob/master/docs/__misc/yun.md

<[https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md](https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md)>



I'll order an open energy monitor board now with 4 CTs, but until

that arrives: do you know if the Yun has some kind of

internal/builtin sensor like an onboard temp. or voltage sensor that

we could read out and connect up to Autobahn etc as a start? So I

could make some small program that will work for both of us ..



Cheers,

/Tobias



Am 27.11.2013 14:45, schrieb Peter Kalajian:



    Tobias,



    The transformer does not have regulation, and it uses the

    principle of

    magnetic induction in exactly the same way as the current

    transformer

    does, except to measure a proportion of the voltage. So if the

    220 volts

    from the line varies by 2 volts, the output of the transformer

    will vary

    by 2 x 9/220 volts in a very proportional way.



    I'm not sure about powering the Yun. I looked at the schematic

    and it is

    not clear whether they have included a 5 VDC regulator on the

    board. I

    have emailed them to ask. If they don't it will be a simple

    matter to

    add one.









    On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein

    <tobias.o...@gmail.com <mailto:tobias.oberstein@gmail.com>>


    wrote:



         Hi Peter,



          > The 9v transformer is so that you can measure the

    voltage to do the



             power calculations. Power is voltage X current, so you

    need both

             a way





         Not sure I get that:

         So the 9v transformer isn't to actually provide power to

    run the

         Arduino board, but only to sense the 110/220v house power line

         _voltage_?



         And if so, that "9v tranformer": if it has an output voltage

         regulator that keeps the voltage at 9v strict, how could it

    be used

         to sense variations of the 110/220v supply voltage running

    into that

         9v power supply? Or does it need to be really only a

    transformer

         without any regulation to make that work?



         Mmh. And in any case: even if there would be no voltage

    regulator in

         that 9v thingy, isn't it terribly inaccurate to infere the

    110/220v

         variations indirectly from variations in the 9v?



         /Tobias



         --

         You received this message because you are subscribed to a

    topic in

         the Google Groups "Autobahn" group.

         To unsubscribe from this topic, visit

https://groups.google.com/d/____topic/autobahnws/B3L4N2J7Jac/____unsubscribe

    <[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)>




    <[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

    <[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>>.

         To unsubscribe from this group and all its topics, send an

    email to

autobahnws+unsubscribe@__googl__egroups.com

    <[http://googlegroups.com](http://googlegroups.com)>


         <mailto:autobahnws%2Bunsu...@googlegroups.com>.

         For more options, visit

https://groups.google.com/____groups/opt_out

    <[https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)>


         <[https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

    <[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>>.





    --

    You received this message because you are subscribed to the Google

    Groups "Autobahn" group.

    To unsubscribe from this group and stop receiving emails from

    it, send

    an email to autobahnws+unsubscribe@googlegroups.com.

    For more options, visit

    [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

    <[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.





--

You received this message because you are subscribed to a topic in

the Google Groups "Autobahn" group.

To unsubscribe from this topic, visit

[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

<[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>.

To unsubscribe from this group and all its topics, send an email to

autobahnws+unsubscribe@googlegroups.com.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

#20

Tobias,

Notes following your blog:

  • So far so good. I am through the setting up of the sshfs system, but since I am using a mac system, so getting the sshfs system up and running I went to this site:
  • http://fortysomethinggeek.blogspot.com/2012/11/sshfs-on-osx-mount-sshsftp-shares-on-mac.html
  • after the fstab has been modified, the restart command gives this:
  • root@peteyun:~# /etc/init.d/fstab restart
  • umount: can’t umount /opt: Invalid argument
  • doesn’t seem to matter. I can get the hello.txt to open.
  • you can’t use easy_install without getting the distribute package from opkg
  • commenting out the line conditionalExtensions=getExtensions(), is line 54, not 74
    OK, all done. Waiting for the next instructions.
···

On Fri, Nov 29, 2013 at 5:21 PM, Peter Kalajian aln...@gwi.net wrote:

OK, I was just working on following your steps, so I’ll continue.

Pete

On Fri, Nov 29, 2013 at 5:17 PM, Tobias Oberstein tobias.o...@gmail.com wrote:

Am 28.11.2013 18:29, schrieb Peter Kalajian:

Tobias, I was able to get all the python lobs for autobahn loaded on the

flash, but better the way you are doing it.

Hi Peter,

I’ve written a (preview) blog post on settings things up on the Yun:

http://tavendo.com/blog/post/arduino-yun-getting-started-part-1/

It would be awesome if you could review that a little, give feedback and ideally retry that recipe step by step on your Yun after resetting your Yun (and the Linux thereon) to factory default (which is also described in the preview post).

The reason is twofold: I think it would be good if we can make sure that above recipe doesn’t contain “bugs” (I did quite some experimenting, and I’m not sure I wrote down everything correctly). There are enough subtle steps where things can go wrong, and if the recipe isn’t reliable, that sucks.

And: Honestly, I’m not fully convinced that you got everything installed cleanly and fully the way you did – read: I’d actually be surprised if so;)

Ah, pls don’t (yet) distribute the link …

I’ll now take on the serial stuff and SRDP.

Cheers,

/Tobias

On Thursday, November 28, 2013, Tobias Oberstein wrote:

Hi Peter,



I'm right now still on a business trip, will be back late in the

evening, but the Yun arrived shortly before I had to leave and I had

time for an hour to check it out: here are my findings:

https://github.com/oberstet/__scratchbox/blob/master/docs/__misc/yun.md

<[https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md](https://github.com/oberstet/scratchbox/blob/master/docs/misc/yun.md)>



I'll order an open energy monitor board now with 4 CTs, but until

that arrives: do you know if the Yun has some kind of

internal/builtin sensor like an onboard temp. or voltage sensor that

we could read out and connect up to Autobahn etc as a start? So I

could make some small program that will work for both of us ..



Cheers,

/Tobias



Am 27.11.2013 14:45, schrieb Peter Kalajian:



    Tobias,



    The transformer does not have regulation, and it uses the

    principle of

    magnetic induction in exactly the same way as the current

    transformer

    does, except to measure a proportion of the voltage. So if the

    220 volts

    from the line varies by 2 volts, the output of the transformer

    will vary

    by 2 x 9/220 volts in a very proportional way.



    I'm not sure about powering the Yun. I looked at the schematic

    and it is

    not clear whether they have included a 5 VDC regulator on the

    board. I

    have emailed them to ask. If they don't it will be a simple

    matter to

    add one.









    On Wed, Nov 27, 2013 at 3:10 AM, Tobias Oberstein

    <tobias.o...@gmail.com <mailto:tobias.oberstein@gmail.com>>



    wrote:



         Hi Peter,



          > The 9v transformer is so that you can measure the

    voltage to do the



             power calculations. Power is voltage X current, so you

    need both

             a way





         Not sure I get that:

         So the 9v transformer isn't to actually provide power to

    run the

         Arduino board, but only to sense the 110/220v house power line

         _voltage_?



         And if so, that "9v tranformer": if it has an output voltage

         regulator that keeps the voltage at 9v strict, how could it

    be used

         to sense variations of the 110/220v supply voltage running

    into that

         9v power supply? Or does it need to be really only a

    transformer

         without any regulation to make that work?



         Mmh. And in any case: even if there would be no voltage

    regulator in

         that 9v thingy, isn't it terribly inaccurate to infere the

    110/220v

         variations indirectly from variations in the 9v?



         /Tobias



         --

         You received this message because you are subscribed to a

    topic in

         the Google Groups "Autobahn" group.

         To unsubscribe from this topic, visit

https://groups.google.com/d/____topic/autobahnws/B3L4N2J7Jac/____unsubscribe

    <[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)>




    <[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

    <[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>>.

         To unsubscribe from this group and all its topics, send an

    email to

autobahnws+unsubscribe@__googl__egroups.com

    <[http://googlegroups.com](http://googlegroups.com)>


         <mailto:autobahnws%2Bunsu...@googlegroups.com>.

         For more options, visit

https://groups.google.com/____groups/opt_out

    <[https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)>


         <[https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

    <[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>>.





    --

    You received this message because you are subscribed to the Google

    Groups "Autobahn" group.

    To unsubscribe from this group and stop receiving emails from

    it, send

    an email to autobahnws+unsubscribe@googlegroups.com.

    For more options, visit

    [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

    <[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.





--

You received this message because you are subscribed to a topic in

the Google Groups "Autobahn" group.

To unsubscribe from this topic, visit

[https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe](https://groups.google.com/d/__topic/autobahnws/B3L4N2J7Jac/__unsubscribe)

<[https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe](https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe)>.

To unsubscribe from this group and all its topics, send an email to

autobahnws+unsubscribe@googlegroups.com.

For more options, visit [https://groups.google.com/__groups/opt_out](https://groups.google.com/__groups/opt_out)

<[https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out)>.

You received this message because you are subscribed to the Google

Groups “Autobahn” group.

To unsubscribe from this group and stop receiving emails from it, send

an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

You received this message because you are subscribed to a topic in the Google Groups “Autobahn” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/autobahnws/B3L4N2J7Jac/unsubscribe.

To unsubscribe from this group and all its topics, send an email to autobahnws+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

0 Likes