Jump to content

laga

Members
  • Content Count

    8
  • Joined

  • Last visited

About laga

  • Rank
    Noob Class

Contact Methods

  • Website URL
    http://www.michael-haas.org/

Profile Information

  • Gender
    Not Telling
  1. Dear all, I found out why the example won't compile for me. DHT22_430.cpp.o is included twice in the linking step, hence the errors about 'multiple definitions'. If I copy the example sketch into a new sketch, it compiles just fine. Before, I would just select the example from the examples menu and get the error I pasted above. Working line: [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2553, -o, /tmp/build1383130571671707338.tmp/sketch_oct25b.cpp.elf, /tmp/build1383130571671707338.tmp/sketch_oct25b.cpp.o, /tmp/build1383130571671707338.tmp/DHT22_430_main/DHT22_430.cpp.o, /tmp/build1383130571671707338.tmp/core.a, -L/tmp/build1383130571671707338.tmp, -lm] Broken line: [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2553, -o, /tmp/build1383130571671707338.tmp/DHT22_430_main.cpp.elf, /tmp/build1383130571671707338.tmp/DHT22_430.cpp.o, /tmp/build1383130571671707338.tmp/DHT22_430_main.cpp.o, /tmp/build1383130571671707338.tmp/DHT22_430_main/DHT22_430.cpp.o, /tmp/build1383130571671707338.tmp/core.a, -L/tmp/build1383130571671707338.tmp, -lm] Best, Michael
  2. Yeah, I have to admit, the cheap and easy solution is starting to sound good.. the magnetic solenoid valves draw 300mA @ 12V. Originally, I just wanted to throw in a couple of AA rechargeables and be done. I guess I could hook up a small solar panel if I use the magnetic valve. Regarding Zeke's proposal, "Schlauch abklemmen"/pinch the hose: I found out today that there are commercial valves which use that mechanism. The secret is to use a special, flexible hose which does not break down. The servo/ball valve solution is also very interesting because it does not use a lot of power - essentially the same as the pinched hose. I guess I'll sleep it over.. edit: Found two cool videos. Don't mean to misuse the board as my personal twitter/blog, but perhaps someone else will find this useful:
  3. Hello all, I just tried the example code in Energia 13 and get the following error when compiling. I deleted my energia preferences to not avail. The library resides in its own directory inside my ~/sketchbook/libraries/ and shows up in the Energia menu. [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=13, -I/home/laga/download/energia-0101E0013/hardware/msp430/cores/msp430, -I/home/laga/download/energia-0101E0013/hardware/msp430/variants/launchpad, -I/home/laga/sketchbook/libraries/DHT22_430_main, /tmp/build3433782599202339748.tmp/DHT22_430.cpp, -o, /tmp/build3433782599202339748.tmp/DHT22_430.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=13, -I/home/laga/download/energia-0101E0013/hardware/msp430/cores/msp430, -I/home/laga/download/energia-0101E0013/hardware/msp430/variants/launchpad, -I/home/laga/sketchbook/libraries/DHT22_430_main, /tmp/build3433782599202339748.tmp/DHT22_430_main.cpp, -o, /tmp/build3433782599202339748.tmp/DHT22_430_main.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/twi.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/WInterrupts.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/random.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/wiring.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/wiring_analog.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/wiring_shift.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/wiring_pulse.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/wiring_digital.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/usci_isr_handler.c.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/Tone.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/WMath.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/Stream.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/IPAddress.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/Wire.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/main.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/new.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/HardwareSerial.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/Print.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/WString.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-ar, rcs, /tmp/build3433782599202339748.tmp/core.a, /tmp/build3433782599202339748.tmp/TimerSerial.cpp.o] [/home/laga/download/energia-0101E0013/hardware/tools/msp430/bin/msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2553, -o, /tmp/build3433782599202339748.tmp/DHT22_430_main.cpp.elf, /tmp/build3433782599202339748.tmp/DHT22_430.cpp.o, /tmp/build3433782599202339748.tmp/DHT22_430_main.cpp.o, /tmp/build3433782599202339748.tmp/DHT22_430_main/DHT22_430.cpp.o, /tmp/build3433782599202339748.tmp/core.a, -L/tmp/build3433782599202339748.tmp, -lm] DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::DHT22(unsigned char)': DHT22_430.cpp:(.text._ZN5DHT22C2Eh+0x0): multiple definition of `DHT22::DHT22(unsigned char)' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT22C2Eh+0x0): first defined here DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::begin()': DHT22_430.cpp:(.text._ZN5DHT225beginEv+0x0): multiple definition of `DHT22::begin()' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT225beginEv+0x0): first defined here DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::temperatureX10()': DHT22_430.cpp:(.text._ZN5DHT2214temperatureX10Ev+0x0): multiple definition of `DHT22::temperatureX10()' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT2214temperatureX10Ev+0x0): first defined here DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::humidityX10()': DHT22_430.cpp:(.text._ZN5DHT2211humidityX10Ev+0x0): multiple definition of `DHT22::humidityX10()' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT2211humidityX10Ev+0x0): first defined here DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::get()': DHT22_430.cpp:(.text._ZN5DHT223getEv+0x0): multiple definition of `DHT22::get()' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT223getEv+0x0): first defined here DHT22_430_main/DHT22_430.cpp.o: In function `DHT22::DHT22(unsigned char)': DHT22_430.cpp:(.text._ZN5DHT22C2Eh+0x0): multiple definition of `DHT22::DHT22(unsigned char)' DHT22_430.cpp.o:DHT22_430.cpp:(.text._ZN5DHT22C2Eh+0x0): first defined here collect2: ld returned 1 exit status
  4. Thanks, everyone! I got it working! Spent thirty minutes driving to the electronics store, picked up resistors and capacitors for 3.50
  5. Hey guys, thanks for the warm welcome and great feedback. I think I am looking for a normally-closed solution. I.e. if anything fails, it won't drown my plants. @@zeke, I saw that on hackaday and it actually looks cool - I was afraid it'd use power all the time, but I just re-read it. @@OppaErich, good suggestion. But i stay clear of 230V. And I believe most of these valves require higher water pressure to operate I might just order something like this from China: http://www.ebay.de/itm/Neu-12V-DC-1-2-Solar-Electromagnetic-Solenoid-Ventil-Valve-Fur-Wasser-Luft-/181560778791?pt=Wasserinstallationen&hash=item2a45dda027
  6. Hello all, I'm Michael from Germany. Currently finishing my Master's degree in Natural Language Processing. I've always been fascinated with electronics, but it was always an obscure and arcane cult to me. Heating up acid to make some PCBs, finding a computer with an LPT port to program some mcus.. at least it was that way when I watched my buddy do stuff more than ten years ago. Fast forward, and it's all about Arduinos and you can get your PCBs made for pennies. Cool stuff, but I never wanted to spend 50
  7. Hello @@dubnet, thanks for the warm welcome. I just read a bit about pull-up resistors and pull-down resistors and this makes sense, yeah. Do you think I could just use the internal pull-up resistors on the MCU? Otherwise, I will have to order some resistors. Yes, my equipment is _very_ basic Best, Michael
  8. Dear all, I have recently become interested in making things again and figured I'd automate my plant watering. I still had a MSP430G2 launchpad around and ordered a capacitive soil moisture sensor off tindie.com. The seller helpfully offers some example code to get the i2c interface up and running on an Arduino. So I figured I'd just connect the wires, run the sketch and get some moisture readings.. turns out I was wrong. Here's how I connected things: Pin 15 (P1_7) to "pin 4 - MOSI / SDA
×
×
  • Create New...