Jump to content

Anton

Members
  • Gesamte Inhalte

    17
  • Benutzer seit

  • Letzter Besuch

Posts erstellt von Anton

  1. Hi,

     

    I just downloaded and installed Wheezy for my Rasp Pi.

    But i'm running into problems when i wan't to install the brickd.

    I'm using this guide: http://www.tinkerforge.com/doc/Embedded/Raspberry_Pi.html

     

    When I get to the 4th line of code the Raspb Pi stops with the error:

    dpkg: error processing brickd_linux_latest_armhf.deb (--install):
    package architecture (armhf) does not match system (armel)
    Errors were encountered while processing:
    brickd_linux_latest_armhf.deb
    

     

    Anybody god an idea what's wrong. I'm not too familiar with Linux :(

  2. I'm having a bit of a hard time understanding the IO16 bricklet.

     

    Is it possible to just have it short a circuit?

    I  have a radio that turns on by pushing a button that connects two wires for a short moment and that turns it on. Same thing for turning it off.

    So all i really need is the IO16 to make a electrical connection between two wires for a short time to turn the radio on.

    There's no current on the wires to the button on the radio.

     

    Any help will be appreciated.

     

     

  3. I have actually done this for my home automation project i'm working on.

    Though I use a MySQL DB.

    My setup is roughly like this:

    Server running MySQL and my Java Application.

    The Java App handles communication with both my TinkerForge devices and MySQL DB. The Java App 'listens' on my DB for any changes. So say a light goes from the value '0' to '1' it turns that relay switch on.

    That way i can access my system from anywhere if i want to in the future.

    It is also easy to make a webpage or an iPhone app to control the system via the DB.

     

    Right now i have a raspberry pi connected to Tinkerforge via wifi so that i can place it where ever i want to.

    Unfortunatly the cost of a Masterbrick+wifi extension + power supp + relay bricklet is too much, so i'm looking into using xbee modules as well. Maybe using the IO bricklets to control and send messages to the xbees' with.

     

    I would recommend using a SQL DB it is much easier to communicate with other devices that way and controlling out site of your network.

  4. I'm thinking about doing some light dimming with this velleman kit:

    http://www.vellemanusa.com/products/view/?country=us&lang=enu&id=521945

     

    The thing is, it requires 0-10v input to control the light.

    Do you have any suggestions on how to get that kind of output with a Tinkerforge device?

    I was thinking about the DC brick, but as far as i know it is not possible to control voltage, only velocity.

     

    Any suggestions is welcome!

     

  5. Hi,

     

    My DC brick has stopped working i am no longer able to connect and the leds are not turning on.

     

    I've noticed recently that it gets very hot.

    At the moment i'm not using it to control a motor, i'm only using it for the extra bricklet connections.

     

    The place where it gets very hot is right on the Atmel chip.

    I've tried to put it in boot loader mode, but so far i haven't been successful.

     

    So do you think that it is fried somehow and the brick is lost or is there anything i can do to try and fix it?

     

    Thanks.

     

     

  6. Sure:

    package Extensions;
    import com.tinkerforge.*;
    import com.tinkerforge.IPConnection.TimeoutException;
    
    
    public class DualRelay extends BrickletDualRelay 
    {
    
    
    public DualRelay(String uid)
    {
    	super(uid);
    }
    
    public void switchState(int relay) throws TimeoutException
    {
    
    	boolean relay1 = getState().relay1;
    	boolean relay2 = getState().relay2;
    	if(relay == 0)
    	{
    		if (relay1)
    		{
    			setState(false, relay2);
    		} else {
    			setState(true, relay2);
    		}
    	} else if(relay == 1)
    	{
    		if(relay2)
    		{
    			setState(relay1, false);
    		} else {
    			setState(relay1, true);
    		}
    	}
    }
    }
    
    

     

     

    I've made a git repository for the extensions at Bitbucket.org:

    https://bitbucket.org/Antonas/tinkerforge-extensions

     

    If any of you want an invite, send me a PM.

  7. Hey!

     

    Are you still working on the github?

    I've made some extensions for the DualRealay too.

     

    I've made a method that changes the state of the relay regardless if it's on or off. Usefull for a single button solution.

    So say its on, you call switchState(int relayNo) relay1 switches to off. vica versa.

    Nothing too fancy.

     

    Got the lcd as well so i'm up to making something cool for that.

     

    Haven't used github before only bitbucket.org.

    So im not sure how it works, can you send me an invite to my mail anton.as@me.com?

     

    Would be cool to collaborate on some extensions.

×
×
  • Neu erstellen...