Bun's Lab – Telegram
Bun's Lab
147 subscribers
1.81K photos
102 videos
63 files
49 links
Electronics projects, vintæg computing, programming and repairs. A minimalist blog of sorts.
@BunsGarden @BunsNook
Download Telegram
Configuring the LA to use GPIB, setting its address on the bus to 01
The previously installed program ibterm provides a classic GPIB terminal, lets use it and send our first command
ibterm -d 01
ibterm>IFC


Interface Clear (IFC) is used to initialize the bus and take control of it. When a GPIB controller asserts (activates) the IFC line, it resets the communication on the bus, bringing all connected devices into a known state.
Before sending IFC the LA is in LOCS (Local State) mode. That means, directly controlled via its front panel buttons and not remotely by GPIB commands.
NA stands for Not Addressed. It's neither a listener nor a talker. It's idle in terms of GPIB communication.
NPR stands for Not Present.
After sending IFC the LA changes to Remote State (REMS). It's now controlled by the GPIB bus. The front panel buttons have no function anymore. Pushing any button results in the message at the top of the screen, second image.
TA stands for Talk Address. It has been assigned the role of the talker by the bus controller.
SRQ is Service Request. It's a physical control line on the bus, used by a device to indicate to the controller that it needs its attention.
Sadly, I wasn't able to get the LA to respond to any other command using ibterm. No clue why :(
Let's move onto Python now.

Assuming you have a local python venv for pip. Install the pyvisa packages and fire up an ipython shell:
pip3 install pyvisa pyvisa-py zeroconf psutil
ipython3

Import the module, use pyvisa-py as the resource manager and query for all resources on all GPIB interfaces.
import pyvisa as py
rm = pv.ResourceManager('@py')
rm.list_resources()

This should show the instrument on the GPIB device 0, PAD 1:
('GPIB0::1::INSTR',)

Instantiate an instrument object:
inst = rm.open_resource('GPIB0::1::INSTR')
inst.write('DT=052005HELLO')
inst.write('DT=062305WORLD')
0121-0460-10_K450B_UM_Apr90.pdf
8.3 MB
The commands are listed in this PDF starting at page 147 in the pdf / 133 in the document.
2
I reused one of those external drive cases for SCSI drives to house my kryoflux setup. Need to get a case with three or more bays to also have a 360k drive at the ready. Maybe switch over to a greaseweasle, too.

What I find really annoying about the kryoflux software is that nobody bothered to implement a way to write just about any floppy image back. Gotta to use an old PC to write .imd 😒
👍3
Got a box full of nice stuff in the mail :3
Thanks, Rik <3
👍2
Bun's Lab
Got a box full of nice stuff in the mail :3 Thanks, Rik <3
Wew, 12 ATMega644P-20PU and ~100 of those PICs. Thanks a lot!!
Rik also sent me a couple voltage references. That was in fact the whole reason for the box.
LM299AH, REF02, VRE3041A and LTC 6655
Bun's Lab
Rik also sent me a couple voltage references. That was in fact the whole reason for the box. LM299AH, REF02, VRE3041A and LTC 6655
The LM299AH is a real classic. A precision, temperature-stabilized monolithic zener. The temperature stability is 1 ppm/°C, with 20 ppm long term stability, and a noise floor of 7 µVpp typical, 20 µVpp max between 10 Hz - 10 kHz.
The problem is that the initial reverse break down voltage is not well known. It's somewhere between 6.8 - 7.1 V. Which means, in order to build a reference using it, you need a reference to calibrate it to.
Bun's Lab
Photo
The REF02 is a bandgap based 5V precision reference. 10ppm/°C temperature drift, 10µVpp max noise (0.1 Hz - 10 Hz) and a known output voltage of +5 +- 0.2% max. It also has a trim input to further calibrate it within a +- 6% range. The long term stability is specified at +- 100 ppm for the first 1000h, +- 50 ppm for the second 1000h.
Bun's Lab
Photo
The VRE3041A has a known output voltage of 4.094 V +- 0.409 mV, that's 0.01%. A temperature drift of 0.6 ppm/°C, noise of 3 µVpp (0.1 Hz - 10 Hz), and a long term drift of 6 ppm/1kh. It also has a trim option for < 0.01% initial error.
Bun's Lab
Photo
The LTC 6655 is a bandgap based voltage reference.
I have the 5V variant in the hermetically sealed 5x5mm LS8 package. It goes for 16 € a pop on mouser, not including taxes.
Noise is 0.25 ppm pp between 0.1 Hz and 10 Hz, with a 2 ppm/°C temperature drift, a high initial accurary of +- 0.025 % max, and a long term drift of 20 ppm/sqrt(kHr). Dope af.