Jump to content

linuxha

Members
  • Content Count

    26
  • Joined

  • Last visited

About linuxha

  • Rank
    Member
  • Birthday 12/21/1911

Contact Methods

  • Website URL
    http://www.linuxha.com/

Profile Information

  • Location
    NJ
  • Interests
    Home Automation, Electronics, Software and Cycling.
  1. linuxha

    I've got the power

    How can I put it in the trash? It goes to something around here. Now just which device did that come off of ? :?
  2. linuxha

    Irrigation scheduling algorithm

    Okay, I've seemed to have caused a great deal of confusion. My thoughts were on working on the scheduling algorithm. So I could have something like cron but for a uC. I'm still interested in that but I must say that my thoughts of the overall system have gone in another direction. I know I need an RTC. I haven't quite decided on a 32k xtal or an external RTC chip. At the moment I'm going with the xtal. I'm not too worried about the accuracy as I can reset the time via the Linux system every once in a while to correct for drift. My concerns were for formats of the time storage to support complex rules. I'm still working on that. I'd like to fit the program into 8k flash and 256b ram, I also have 256 byte of flash to store events in. I need to think this through but I think it will work. Of course I may need to jump up to a chip with more ram.
  3. linuxha

    Irrigation scheduling algorithm

    Zeke, thanks for the information/links. My wife and I are thinking about burying soaker hoses into parts of the garden. I'll have to take a look at the Evapotranspiration and other links you have. I hope to be building out the 'farm' soon (I still have to dig out the rocks the previous owner used to cover that section). I might also try to convince my wife to provide space for some blueberry bushes (they grow very well here in NJ). You bring up some good points with the sensors. On that point I may take the kiss method and turn the controller into a simple timer system and allow my central HA box (Misterhouse - MH) to override it depending on the external sensors. That way if MH crashes the sprinkler system will still run in a backup mode. I'll also keep my wife happy with the keypad/LCD interface (I'll have a javascript version soon) and make the programming more flexible and useful. Let's face it MH can deal with complex information much better than a uC (micro-controller). On the inappropriate water issue, I'm always surprised when I see people watering in the middle of the day. The way it was explained to me was that a drop of water is like a magnified glass. The sun hits it and can burn whatever the light concentrates on. The issue of 102 and steam bring the issue into a new light. ;-)
  4. linuxha

    Irrigation scheduling algorithm

    Hmm, I think you should consider upgrading to a Linux box, it has none of the restrictions and and fits nicely into a smaller space (yes, that's a joke).
  5. linuxha

    Irrigation scheduling algorithm

    I need to roll my own scheduler, my wife want this thing to be able to stand alone in case there is a crash on the server. My test phase of the program will have the basic power, uart & soloenoid driver hardware and timers working (send an on & a time - run and turn off or maually turn off if given the command). At that point I'll work up the algorithm on the Linux server and then port it over to the micro-controller. I can write that in a number of languages (JS, Groovy, Perl, C, whatever) and get the logic working properly. The server will communicate via the terminal server or XBee at first. I've already take a look at the Sprinkler controller manufacturers. Nothing really useful for building a cron like algorithm on a micro. You've lost me on the F5529. I only see 1 UART but the ability to add the RF is pretty neat. I'll need to sit down and get Wireshark working then see if I can figure out how to make the RF2500 and the ZB XBees play nice (I also have the AVR ZB boards). Then I can grab one of thoise boards. Right now that isn't high on my (rather long) todo list.
  6. linuxha

    Irrigation scheduling algorithm

    I already have a set of thermostats that use the XBees so I'd like to use that existing interface on the server (my server is running Misterhouse). I do have a couple of ez430-RF2500s but I haven't started playing with them yet. Maybe I'll get a little time later for playing with them (too many things going on at once).
  7. linuxha

    Irrigation scheduling algorithm

    I'm building a replacement sprinkler controller for an old unit which is difficult to use. My wife wants scheduling that the current unit doesn't support, every 4 days (for example). We've also seen drought conditions imposed (watering only on even day for even homes, etc.) so I need a decent algorithm that will still fit in the tiny space of a small micro-controller. For communication I'll be using a terminal server, then an XBee (multi-drop) and someday an Ethernet interface. Anyone have any pointers to code or white papers?
  8. linuxha

    MSP430, mspgcc and Linux

    Thanks, I'm not done yet! :-) I still have to add all the details and explain things. I learned a long time ago that notes were important (I still reference my college notes on various subjects). After I wrote the Linux book I found that I was often looking up material I wrote. I decided then I needed to put my notes online where I could easily find them (hmm, I've got to update Google to re-search my pages). Now what I really need is a good touch screen drawing program and a touch screen notes taking program (and of course a touchscreen bigger than my Android phone).
  9. linuxha

    MSP430, mspgcc and Linux

    I've started to put together my MSP430 notes page. It's no where near completed (technically it isn't published yet) but it does contain my working Makefile and a converted TI blink program for the F2012. I've commented out the TI code that doesn't work (the #pragma for example). I'll work on it as I get time. The program is decent to test out the compiled, the mspdebug (loading, running, step, etc.). It worked well on my Ubuntu client. On my server there is a problem with getting the USB stick recognized. I still have a lot of work to do on the page.
  10. linuxha

    MSP430, mspgcc and Linux

    I can't yet as I haven't found all the documentation for GCC and stuff like the interrupts (I suspect that it's on the associated web site). Are you using mspgcc4 or just mspgcc (do a msp-gcc -v and it will tell you). So far I've just been looking at the header files and doing searches on the internet. I'll have more, hopefully, soon.
  11. linuxha

    MSP430, mspgcc and Linux

    A lot of times it's not libraries but rather variable names or defines that are slightly different. I've been able to compile a few of the programs so far but I did have to change the method of defining the processor (I pass it in the Makefile) and a few definitions. What examples are you trying and what errors are you getting? BTW, I use nothing but Linux.
  12. linuxha

    MSP430 tools for linux

    But I only figured it out when I was forced to think it through enough to explain what was going on (typical). Then I was forced to prove my answers. I hate posting something and then getting asked the obvious question (did you do this or that). I can make enough of a fool of myself without the extra added effort.
  13. linuxha

    MSP430 tools for linux

    Thanks for the help! After fixing my path and installing zlib I'm now able to compile mspgcc4! I've also been able to compile a msp430 program. Yeah! :ugeek:
  14. linuxha

    MSP430 tools for linux

    Actually yes but it will not make much more sense. When configure is running the fails at gcc conftext.c. When I went digging further I found that gcc was actually i686-[c-gnu-gcc. So I dug into configure much further and found the exact details of the command line. Weird, when I compile helloworld.c from the command line it works yet if I compile conftest.c (copied out of configure) I get "exec: 78: : Permission denied". Dang, borked as/gas ... ARGH! Path problems, seems a :: got into my path and Bash interprets that as '.' . In the directory where mspgcc4 gets compiled is a 'as' script. Man that is maddening! I corrected the path problem and I'm recompiling. I ran into a new error but I think I should clean up and start over (may delete the directory and restart with git).
  15. linuxha

    MSP430 tools for linux

    The command is : buildgcc-4.4.5_gdb_7.2.sh Which in turn is: #!/bin/sh cd "$(dirname $0)"/.. set -eu sh do-binutils.sh "/opt/msp430-gcc-4.4.5" "2.21" "http://ftp.uni-kl.de" "build" sh do-gcc.sh "/opt/msp430-gcc-4.4.5" "4.4.5" "http://ftp.uni-kl.de" "build" "gcc-4.x" "4.3.1" "2.4.2" sh do-libc.sh "/opt/msp430-gcc-4.4.5" "build" "http://sourceforge.net/projects/mspgcc4/files/msp430-libc/msp430-libc-ti_20110213.tar.bz2" sh do-gdb.sh "/opt/msp430-gcc-4.4.5" "6.8-1" "http://ftp.uni-kl.de" "build" insight sh do-gdb.sh "/opt/msp430-gcc-4.4.5" "7.2" "http://ftp.uni-kl.de" "build" gdb sh stripbin.sh "/opt/msp430-gcc-4.4.5" echo "Creating binary package..." cd "/opt/msp430-gcc-4.4.5" && tar cf - * | bzip2 -c > "/opt/crosstool/mspgcc4/msp430-gcc-4.4.5_gdb_7.2.tar.bz2" ls -ldq "/opt/crosstool/mspgcc4/msp430-gcc-4.4.5_gdb_7.2.tar.bz2" cd "/opt/crosstool/mspgcc4" I'm compiling from the git.
×