diy aquarium controller

<a href=showthread.php?s=&postid=11040585#post11040585 target=_blank>Originally posted</a> by stugray


3 - Next I will need to build the wiring harness for the 1-wire network. Since some of my devices will use externally supplied power ( instead of the purely parisitic power ), I will need 3 wires. I havent decided if I should twist them or just shield them. Some of the harness might be 30 feet long.

Stu

If you are going to have a 30 foot run, you would be better off using CAT5 cable. You can get it at Home Depot now. I used a few feet of telephone cord for testing and I got lots of CRC errors. I used CAT5 for a 75 foot run and it worked fine. The specs allow for much longer runs with good cable.
 
<a href=showthread.php?s=&postid=11042839#post11042839 target=_blank>Originally posted</a> by BeanAnimal
Sounds like a good plan Stu. I have been very pleased with the 1-wire stuff. My problem is doing the CRC stuff in VB. The OWFS will have all of tha tbuilt in :)

I'm not sure how the API is for VB, but for Java it was fairly easy. I just created my own class to handle the 1-wire device I/O and watch for errors there. Errors once in a while are normal, but recurring errors are a problem. CRCs can also result in bad data being returned. I watch for any errors (there are several types of errors that can be returned) within a certain period of time and send a notification if there are too many. I don't think you can see these errors from the OWFS and I'm not sure what data is returned when there are errors. Something to keep in mind there.
 
<a href=showthread.php?s=&postid=11040106#post11040106 target=_blank>Originally posted</a> by A. Iosue
Here is one person trying to BUILD something usefull meanwhile others trying to destroy it from the beginning.

Don´t talk too much and do it!

The only coherent thing I have found here is to get out cause this is useless, a german forum must be better.

He must be related to that blowhard Hugo Chavez. :rollface:
 
<a href=showthread.php?s=&postid=11031990#post11031990 target=_blank>Originally posted</a> by BeanAnimal
TTL as in Transistor Transistor Logic (the cousin of CMOS). You know the good old logic chips that you simulate in your FPGA... all those old 74XX and 54XXseries logic gates, etc.

I understand what FPGAs are, I just have no reference point to begin working with them. It is hard for me to move from an inline code (microcontroller, application programming) methodology to a hardware basd methodology. If you are at home with FPGAs then you would be right at home with plain old discrete logic gates :)

Oh sorry about that. I get a little excited about them I guess. ;) The site I listed has a good reference section with examples and instructions that may help you get started. With a proto board all you need is a computer to program it.

http://www.digilentinc.com/nav1index.cfm?Nav1=Design
 
<a href=showthread.php?s=&postid=11031199#post11031199 target=_blank>Originally posted</a> by BeanAnimal
....In my constant addiction to try something new, I have ordered a few new toys.

1) http://www.coridiumcorp.com/ARMweb.php (but I am not happy with the very limited program memory area). I like it because I can program it in basic and it has built in support for 1-wire and I2C etc.

2) http://embeddeddatasystems.com/page/EDS/PROD/HA/HA7Net

I thought that would be nice to play with.
Bean, I am very interested in what you eventually end up with these goodies.
Keep us posted.
 
running into a few probloms.
such as variables. guess you cant ahve as many as i thought lol
any ways. i think i found a way around it by using two to replace a ton of them and utilizing them differently based on the what state they are in O_O im confusing my self

anyways.. once i have a working code ill post part of it on here
 
ok this code is getting to me
ill understand it eventualy but c would be so much easier.
in c i can just make the dang variables with a simple line in assembaly its O_O move to this bank then do this then do that then go back and apply that to the bits !!! AHHHH
 
A.T.T.R

I have experience with assembly.

What are you trying to run on, and what functions are you trying to implement? If you are more specific about what you are trying to do, I may be able to help.

As for the random number generation, that is actually not that easy. Sometimes it is easier to just use a lookup table that you load in advance with some numbers and walk through the table.
Look up "pseudorandom number generator" on Google.

Stu
 
Ok,

So I have my 1-wire eval kit in hand.

I have installed OWFS ( and fuse and all the other dependencies required ) and the install went fine.

I have looked at the OWFS website, but WHAT DO I DO NOW?!?

The documentation at OWFS doesent tell me what to do next!!

Do I type some command at a xterm prompt to make it go or what? I am missing something?

Stu
 
im trying to come up with a "random" number generator

what i think im going to do is do two or three + and or * and possiably shift the bits by the time the program calls the variable again it will be different kinda randomish and it waste clock cycles and that is actualy usefull since i do need to kill some time anyways!
 
A.T.T.R

Another way to do it is to use an "idle process" ( what ever runs when the processor has spare time ), to do the left or right shift on a number ( register).

As long as the idle time of the processor changes, you have different results each time.

I am used to real-time OS so I am not sure how to implement with 'other' OSs.

I have the OWFS installed properly finally ( missing dependencies that weren't obvious on first install ) and now I am learning how to get the OWFS config file setup.

I ended up bailing on Fedora 7 and installed ubuntu instead. So far I am getting better results and more stablility ( with the exception of an annoying w1_busmaster1 {or 3} process that I cannot figure out ).

Stu
 
I need more details of what you are trying to do to help you.

1 & 2 line responses arent helping.

What processor are you running on.

What 'specific applications' are you trying to accomplish.

Examples of the code would be helpful. One of my primary responsibilities at work is troubleshooting complex interactions between hardware & software. All I need to help is more information.

Stu
 
Back
Top