On Thu, Nov 14, 2013 at 12:31 PM, Alaios <[email protected]> wrote:

> Hi,
> actually when I learn something new I always try a toy game, most of the
> time does not make sense but is fun.
>

no problem.   writing simple games is a great way to explore what you have
to work with.   good idea.


>
> I want to understand how to use those lovely connectors my telosb has so I
> have two toy games in mind.
>

it would be helpful if you state what connectors you are talking about.
You really should try to be more succinct about what you are talking about.
 This is the 4th email about this topic and we still haven't gotten to
exactly what you are talking about.

I beleive you are talking about the expansion connector.  (if so that would
have been a great thing to have stated in your first email).

try to think to yourself that if you were receiving this email, what kind
of information would you need to be able to answer the question.  Put
yourself in the shoes of the receiptiant and try to give them enough (or
more than enough) information so that people you are asking for help can do
that without a flurry of emails back and forth.   Make it easy for them.

Now are you talking about GIO2 and GIO3 on U28 on the 6 pin expansion
header of the telosb?

do you have telosb schematic?   That is kind of essential for messing
aournd with physical wiring.  Do a google search for tinyos telosb
schematic.   It will get you to
here<http://webs.cs.berkeley.edu/tos/hardware/telos/telos-revb-2004-09-27.pdf>…



>
> a. If I understand it right these pins can give as output 3volts peaks and
> same for inputs. In that case I will connect to the right pins a 3volt led
> and make it lid.
>

that is a strange way to talk about digital signals.  Usually saying 3
Volts peak implies that it is an analogue signal.  The digital signals I
think you are talking about are 0 to I beleive 3.3V.  The term you are
looking for is called the signal level.

Connecting a LED directly to a digital signal,  Say between the signal and
then to ground is asking for trouble.  You do realize you need a resistor
to do current limiting?


>
> b. Find an external sensor connect it and try to get the values I need.
>

Depends on what you are trying to do.

If you are just getting started and want to get going with something simple
do the led.

If you on the other hand, what to explore, what is involved in interfacing
a sensor to tinyos and tinyos h/w then going the sensor route will be a
better learning experience.


you can always do both.   start wtih the led to see if you can get a signal
to wiggle.   Then do the more complicated sensor.   But depends on how the
sensor interfaces.   Do you have an idea of what is involved with
interfacing a sensor?   Do you know about different busses?   I2C, SPI, etc.

You seem to be wandering around in the wilderness a bit.



>
> I guess that a is far simpler than b but still I need some ways to get me
> started
>
> Regards
> A
>
>
>   On Thursday, November 14, 2013 8:15 PM, Eric Decker <[email protected]>
> wrote:
>
>
>
> On Thu, Nov 14, 2013 at 10:52 AM, Alaios <[email protected]> wrote:
>
> Hi all,
> If I understand it right the easiest way to read an input 3 voltage or set
> a 3voltage output is to use the GeneralIO interface. Is not that right?
>
>
> First it would be more better if you explain what you mean by a "3
> voltage" thing.   Do you mean tri-state?  If so please use the right term.
>
>
> Anyway, GeneralIO is very well described in two places.   The first is TEP117,
> Low-Level I/O <http://www.tinyos.net/tinyos-2.1.0/doc/html/tep117.html>,
> and the second is the source code.
>
> When I'm looking for things I use stuff like…
>
>     find . -iname "*generalio*"
>
> when looking for what files have some thing to do with the name GeneralIO
>  or
>
>     grep -nHiR generalio .
>
> when looking for what files use GeneralIO.   The last will produce lots of
> output.
>
>
>
>
>
> Any guide to start with?
>
>
> sure.  look at the TEPS.   Look at the tutorials, to see if they touch on
> any of the problem you are messing with.
>
> docs.tinyos.net
>
> do google searching.
>
>
> The more you help yourself, the more other folks will be willing to help
> you too.
>
>
>
>
> Regards
> Alex
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>


-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to