Products > Test Equipment

open source GPIB adapter

<< < (13/42) > >>

dazz1:

--- Quote from: dreamcat4 on May 18, 2023, 11:42:48 am ---Could please provide link to the programmer you ended up ordering? Many thanks

--- End quote ---

There are many shops selling the same item.  This is one of them.
https://www.aliexpress.com/item/1005004954482917.html?spm=a2g0o.order_list.order_list_main.89.23251802Ao05Ef

dazz1:
Hi
I have now added the option of thru hole, right angle LEDs as shown on the attached screen shot.  I have designed for the Dialight 551-xx07F 3mm series.  The LEDs are orientated to point out the rear of the adapter to allow for a single piece enclosure.   The enclosure will be able to slide over the pcb and connector.

The option of the smd bi-colour LED beside the connector is still there.  The disadvantage of the SMD option is that the LEDs will only be visible one way up.

dazz1:
Hi
The current version of the software is only designed for one red LED.  The software will not use the second green LED.   I think that two LEDs should be able to provide useful status information, especially for GPIB initial diagnostics.
I am hoping someone reading this will be interested enough to take up the challenge of modifying the code to improve visual status information from the two LEDs.  I would rather not do it myself because I haven't programmed this MCU before and I don't have the development tool chain setup.   I haven't written C code before.  I can understand it, but I haven't written it.

I propose the pair of LEDs display static on state to indicate power/connection and,
flashing to indicate activity as described below. 

Red on = Power On
Green on = GPIB device connected

Red flashing = writing data from the GPIB.  Achieved by turning off the LED for a moment.
Green flashing = reading data from the GPIB.  Achieved by turning off the LED for a moment.

There is a variable called   
--- Code: ---s_device_state
--- End code ---
When this has a value =
--- Code: --- GPIB_DEVICE_CONNECTSTATE_CONNECTED
--- End code ---
  the adapter recognizes that the GPIB is connected to an active device and the green LED should be turned on.   The GPIB status is returned by a call to the function declared as 
--- Code: --- bool gpib_is_connected
--- End code ---
 

The Red LED simply needs to be turned on to indicate that USB is available. 

Read/Write events can be signaled by setting booleans value each time a read or write function is called.  An ISR running at say 100Hz can turn off the related LED, then turn it back on again.  This would create an activity indicator.  Using a timer triggered ISR will minimise the computing load of the LEDs and display flashing at a rate slow enough to be recognized as flashing.


I don't think any of this would be too difficult.  It would just need some time and skill.



dazz1:
Hi
In this world of virtual reality, I can safely say I have completed the bestest and most marvelous version of the GPIB adapter. 
Just marvel at the attached view  ;D

Back in the real world, I have ordered the PCBs.  They will take a couple of months to get to me. 
In the mean time, I can design an an enclosure around the 3D model.  I have a 3D printer so I can try out different ideas.
I am thinking of going to a curvaceous  organically shaped enclosure because I can.  It will be a differentiating feature to the over-priced branded adapters. 

dazz1:
Hi
OK I want to make a small modification to the C code for the adapter.   
At present, the single indicates different states:
LED blinking: The USBGPIB converter is connected to a measurement instrument, it is powered off or its GPIB port is disabled. In this state, the device is also not connected to USB and will not show up in the device manager or lsusb.
LED on: The device is connected to a measurement device and GPIB communication possible. It is also accessible over USB
LED off: The device is not connected over USB, or the PC powered off

Right now, I am still waiting for the pcb's to be delivered.  I have the necessary components to build the USB-GPIB adapter.
 
I want to program the 2nd LED to indicate read/write activity like an Ethernet connector.  The aim is to provide visual confirmation that the adapter is actively communicating with the device.
I think I can do this by triggering the LED off the GPIB-DAV signal.    Making this change would leave the code 100% compatible with the Xyphro original hardware design. 

I need to create a programming tool chain to do this.   I have been reading up on AVR compilers and there seems to be a wide choice. I don't need an IDE for the simple code changes I have in mind. The creator Xyphro appears to have used GCC.
Can anyone point to a guide on configuring GCC to compile the Xyphro code, and then programming the AVR.  I can do this with Win10 or Linux. 

 



Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod