Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - willemite

1
Project logs / OPTI-LOGIC 400LH rangefinder serial protocol determined
Hi all,

I've needed a rangefinder for some surveying stuff (not hugely accurate type of work, just me being lazy and not walking), so I needed something with compass and tilt sensing built in. Plus I wanted one that would save the data. Of course there are few of those, and pricey, so I bought an opti-logic 400LH off ebay in the hopes I could determine how it worked. I thought I would have a reasonable chance at it since the same company makes a module with RS-232 output. After numerous trial and errors, I think I have worked it out.
There is an 11 pin connector that ties the main board in the the pulse generator and sensor sub-boards. Plenty of action on lots of those pins.
I can't work out what most of the are, some are pulse start and maybe even sensor received. I did find one that seemed to be a clock, though it has two positive pulses in groups, and fires a total of 28 pulses. The data sheet for the rs232 module version says the raw output is 0-4095 counts, so 12 bits. I am guessing here that the last 12 pairs are the data clocked out.
Pin for data is the 4th one, pin for clock is the 6th one, with numbers starting closest to battery
The reason it is clocked out is there is a sub-assembly that has an ST processor and a MEMSIC accelerometer to provide the tilt compensation. Data is sent out even if this board is unplugged, but if you swith to mode 2 (horizontal corrected mode) the instrument always says zero (it waits for a response and eventually times out). To do something I chose to "ignore" the first 4 clocks, then sample the data on the falling edge of the first clock pulse out of each two (the data line seemed to always change state on the second clock edge). For the shown segment, the value is 000001100011 MSB first (99).
[attachment=1]
I plotted the decimal result versus feet displayed on the lcd of the 400LH and the graph is attached. The correlation is not totally perfect because I used each distance measurement, because in mode 1 (and 2, I did not test 3 or 4) on the 400LH, there appear to be a total of 8 laser firings which are then averaged to get the final value.
[attachment=0]
Hope this is useful to some.
2
General discussion / Transmitting current into a big loop
Hi all,
I'm playing around with time-domain electromagnetics as would be used in geology (TDEM) and of course wondering if I can build my own transmitter. 
[attachment=0]
Basically need to have what is essentially (or rather ideally) a square wave of really low frequency that can be turned off very rapidly (on the order of 20-30 microseconds though up to 100 would work). By turn off, I mean shutting off the current to zero, not the field. It would be good to be able to reverse the direction of current as shown in the diagram.
Does it make sense to use an H-bridge for this type of application? The first prototype would be somewhat low amperage+voltage (maybe 12 or 24 V with 2 amps), but its not unheard of to use hundreds of volts and several amps (eventually, but I don't need the first prototype to be so dangerous). Eventually I would like to be able to regulate the current and voltage, but one thing at a time.
thanks
3
General discussion / optocoupler or shift level recommendation
Hi All,
I have a micro (psoc) that is running at 3.3 or 5 V (have not decided yet, but prob 5 due to improved analog specs).
Of course I have to interface to the real world -- in this case an old-school magnetometer that run on 13.5V CMOS (well, on 12 D batteries till they droop too low so range 14.4 down to something like 10 I i think).
I need a logic interface to this device -- there are 7 lines that I need to monitor with the micro, and another one I need to assert. It uses inverse logic (so asserts low). Would the recommendation here be optocouplers or not worry about the isolation and use something like the CD40109B-Q1 which can take overvoltage to 18 in both directions and seems to go high-low and low-high.
galvanic isolation might be nice for keeping the noise out of the instrument though.
thanks in advance

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01182290024session_write_close ( )...(null):0
20.01212421616ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01212422392Database_MySQL->query( ).../DatabaseHandler.php:119
40.05632561128Database_MySQL->error( ).../Db-mysql.class.php:273