Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 06:46 19 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Electronics : Piclog USB

Author Message
windman1000
Regular Member

Joined: 21/06/2009
Location: United States
Posts: 91
Posted: 03:24pm 07 Mar 2011
Copy link to clipboard 
Print this post

Can I hook this USB Module this way to the picaxe and take out the regulator?

 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5036
Posted: 11:31am 09 Mar 2011
Copy link to clipboard 
Print this post

Hi Windman

Do you have any info on that USB module? Is it a USB to serial adapter or something like that.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
windman1000
Regular Member

Joined: 21/06/2009
Location: United States
Posts: 91
Posted: 10:26pm 09 Mar 2011
Copy link to clipboard 
Print this post

Hi Glenn
Sorry I should have given the link and info.

Ebay Link

DESCRIPTION
Stable and reliable chipset CP2102.
USB specification 2.0 compliant with full-speed 12Mbps.
Standard USB type A male and TTL 6pin connector.
6pins for 3.3V, RST, TXD, RXD, GND & 5V.
All handshaking and modem interface signals.
Baud rates: 300 bps to 1.5 Mbps.
Byte receive buffer; 640 byte transmit buffer.
Hardware or X-On/X-Off handshaking supported.
Event character support Line break transmission.
USB suspend states supported via SUSPEND pins.
Supports Windows 98SE, 2000, XP, Vista, Window7, Mac OS 9, Mac OS X & Linux 2.40.
Size: 42mm X 15mm.
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5036
Posted: 11:28pm 09 Mar 2011
Copy link to clipboard 
Print this post

Hi Windman

Nice little USB Serial thingy.

Yeah I think that should be OK. The USB +5v will drive the PicAxe chip fine, so you can take out the 5v regulator. I would add a couple of 0.1uF caps across the +5 and 0 volt points, just to filter out any noise.

The only thing to watch is the sensors. If your wind sensor is using the +5v supply, and its on a long length of wire, then this may cause some problems. Trial and error will tell you. If the PicLog gives weird results, and disconnecting the wind sensor clears it up, then you might need to look at fitting more caps across the supply at different points, or fitting the 7805 back into circuit.

Let us know how you go.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
windman1000
Regular Member

Joined: 21/06/2009
Location: United States
Posts: 91
Posted: 05:19pm 10 Mar 2011
Copy link to clipboard 
Print this post

Thanks Glenn
This is what im building, 1 pcb board with 4 loggers Using 14M picaxe Chips To replace my 5 boards using 8M piaxes ( 1 board is For Dump load And 4 other boards are for logging my Mill and solar to this site and my site).

With the new board im building il have 20 relay outputs way over what i need and 4 extra inputs for further add on.

My RPM and Wind Speed sensors are 10-30 vdc inputs and pulses the signal , they will still be ran from the battery bank.

Here A picture of what im doing but this picture I have crop on the USB hub ans USB serial adapters .



Edited by windman1000 2011-03-12
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5036
Posted: 09:30pm 10 Mar 2011
Copy link to clipboard 
Print this post

Hi Windman

Big build! Nice.

I looked up USB current capacity and found this interresting link. http://www.girr.org/mac_stuff/usb_stuff.html

Looks like 500mA is the max current the USB port will supply. The 1 to 4 adapter in your picture above, is it powered, ie does it have an external power adapter as well as the USB connector?

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
windman1000
Regular Member

Joined: 21/06/2009
Location: United States
Posts: 91
Posted: 11:31pm 10 Mar 2011
Copy link to clipboard 
Print this post

Hi Glenn
Yes it has a power plug 500mA Per Port.

That Is a interesting link on testing outputs and loads.
 
windman1000
Regular Member

Joined: 21/06/2009
Location: United States
Posts: 91
Posted: 01:52am 29 Mar 2011
Copy link to clipboard 
Print this post

Well after 3 weeks I finaly receive my USB modules and install them,And the computer install the USB HUB and the 4 new COM PORTS, I could not get any COM DATA, I Switch TXD and RXD to see if I had them backwards, I disconnected the USB HUB and ran off one module and still could not get COM DATA,
I disconnected the 5v from USB and installed the volage regulators , still no COM DATA.



So I gave up and Took the USB modules off and install the DB9 Serial Plugs.
Everything works good but needed to change the 10K Resistor to a 6.8k in the voltage messuremet ,now the voltage is linier from 10v to 31v.




Heres the Picaxe code I tested and going to use.

Start:
SYMBOL WSpeed = W3
SYMBOL RPM = W2
SYMBOL Amp = W1
SYMBOL Volt = W0
SYMBOL Checksum = W4

Main:
readadc10 4, Volt
readadc10 0, Amp
Count 3, 1000, RPM
Count 2, 1000, WSpeed

Checksum = Volt + Amp + RPM + WSpeed
sertxd("[<V>", #volt, "</V><I>", #Amp, "</I><R>", #RPM, "</R><S>", #WSpeed, "</S><C>", #Checksum, "</C>]")

'23.0 Volts=721
'24.0 Volts=753
'25.0 Volts=785
'26.0 Volts=816
'27.0 Volts=847
'28.0 Volts=880
'29.0 Volts=910
'30.0 Volts=941
'31.0 Volts=973
'32.0 Volts=1004

'Grid Tie From Mill And Batterys With Diode To Clamp Voltage Only
if Volt>816 then Trickle_Grid_Relay1_2_on
if Volt<753 then Trickle_Grid_Relay1_2_off

Trickle_Grid_Relay1_2_on:
high 1
high 2
low 3
low 4
low 5

'Grid Tie From Batterys Only
if Volt>880 then Grid_Battery_Dump_Relay3_4on
if Volt<880 then Grid_Battery_Dump_Relay3_4off

Grid_Battery_Dump_Relay3_4on:
high 3
high 4
low 1
low 2
low 5

Grid_Battery_Dump_Relay3_4off:

'Dump Load From Batterys Only
if Volt>1000 then DumpLoad_Relay1_on
if Volt<982 then DumpLoad_Relay1_off

DumpLoad_Relay1_on:
high 5
low 1
low 2
low 3
low 4

DumpLoad_Relay1_off:

goto main

Trickle_Grid_Relay1_2_off:
low 1
low 2

goto main


P.S. This Project Is Based On Glenns Piclog 08M LINK




Edited by windman1000 2011-04-07
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024