Announcement

Collapse
No announcement yet.

H1 Pin problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • H1 Pin problems

    I'm not understanding how can i feed a relay coil with only H1 pins.

    Someone can explaine me how they works?

    Thank you to everyones

  • #2
    Hi Ringaedor,

    What display module are you using? The GPIO pins on the H1 header work like normal GPIO pins. The following application notes might help you get started on the basic configuration and usage of the GPIO pins of 4D Systems display modules.

    Designer or ViSi GPIO Pins Picaso http://www.4dsystems.com.au/appnote/4D-AN-00057/

    ViSi GPIO Bus Control Using DIP Switch Objects Picaso http://www.4dsystems.com.au/appnote/4D-AN-00067/

    Remember also to read the datasheet for the display module that you are using and the datasheet for its processor.

    The GPIO pins of the Picaso processor, for instance, operate at 3.3 volts but are 5-volt tolerant. As per the Picaso processor datasheet,

    Maximum output current sunk/sourced by any pin .................................................................................... 4.0mA
    For more information on the use of relays with GPIO pins in general, you may refer to

    http://tronixstuff.com/2010/04/20/ge...chapter-three/

    or other online materials.

    Hope this helps and regards.
    Doff

    Comment


    • #3
      I'm using a uLcd70-dt, but seems impossible to looking for information about to use pins to electrify a relay coil!

      I hope i don't need an arduino to do that!

      Comment


      • #4
        Hi Ringaedor

        It totally comes down to the type of relay you are trying to power.
        Many solid-state relays can be powered directly with no problem. Mechanical relays may require you to drive a transistor or FET, which in turn drives the coil. Either way its very simple and depends on the relay you are trying to use, as to how you would drive it.

        What is the relay you have which you are trying to drive?
        If you provide more information, we will be able to provide you a better answer.

        Regards
        James

        Comment


        • #5
          The problem is not the realy, i can't turn on a Led too (the best simple circuit).


          Code:
          func setup()
              pin_Set(PIN_OUT,PA0);
              pin_HI(PA0);
          endfunc
          Breadboard configuration:

          PA0 -> 1K resistor -> Led -> GND pin


          The pin seems don't send electric signal.

          Comment


          • #6
            Hmm, works fine for me, have you 'missed' some of the other important bits of the code? Here's what I used

            Code:
            #platform "uLCD-43DT"
            
            #inherit "4DGL_16bitColours.fnc"
            
            func setup()
                pin_Set(PIN_OUT,PA0);
                pin_HI(PA0);
            endfunc
            
            func main()
            
                print("Hello World") ;      // replace with your code
                setup() ;
            
                repeat                      // maybe replace
                forever                     // this as well
            
            endfunc
            Mark

            Comment

            Working...
            X