forget me...i was wrong
forget me...i was wrong
Last edited by mister_e; - 27th June 2006 at 16:50.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
dumb answer here too check the next...
Last edited by mister_e; - 27th June 2006 at 16:49.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
no big solution... it's working here using
on the PICSideCode:Private Sub Form_Load() Option1(0).Value = True MSComm1.CommPort = 1 MSComm1.Settings = "2400,n,8,1" MSComm1.DTREnable = False MSComm1.RThreshold = 1 MSComm1.InputLen = 1 MSComm1.PortOpen = True End Sub Private Sub Command1_Click() Dim pinstate As Byte If Option1(0).Value = True Then pinstate = 1 Else pinstate = 0 End If MSComm1.Output = Chr(255) & Chr(pinstate) End Sub Private Sub form_unload(Cancel As Integer) MSComm1.PortOpen = False End Sub
sorry, try a lower resistor value and be sure you share the same ground, be sure you place 0.1 uF cap close to your PIC and be sure of your crystal speed and capacitor value.Code:INCLUDE "modedefs.bas" Si VAR PORTA.4 RELAY VAR PORTB.2 pinstate VAR BYTE main: SerIn Si,n2400,[255],pinstate IF pinstate=1 Then GoSub Relayon Else GoSub Relayoff EndIF goto main Relayon: High RELAY Return Relayoff: Low RELAY Return
Schu4647 have also point an interesting fact... be sure it's not the relay who create the bug.
Last edited by mister_e; - 27th June 2006 at 16:54.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
> I haven't found a relay yet I could directly drive
There are many 5v Reed Relays, many of which need less current than an LED... and some even have integral back-emf diodes across the coil which dispenses the need for any other external components. Meder Electronic www.meder.com springs to mind, at prices in volume of under $1 a lump, they're not exactly budget breaking either.
And they tend to be rated for billions of cycles.Originally Posted by Melanie
Manly relays can be turned on by girly relays.Originally Posted by schu4647
Bookmarks