Skip to content

Latest commit

 

History

History
215 lines (154 loc) · 16.5 KB

info.md

File metadata and controls

215 lines (154 loc) · 16.5 KB

Liquid Feeder

Description

The liquid feeder is designed to administer a user defined preset amount of liquid food to rodents as a reward in behaviour experiments. The liquid feeder can simply be integrated with any controller that offers a 5V TTL (Transistor-Transistor-Logic) or 3.3V logic output such as a single board computer (Raspberry Pie or Arduino for example) or any other microprocessor or logic controller. The feeder has an accuracy far higher than is actually necessary for the application at hand but allows the unit to have the possibility of many other applications such as automated administering of chemicals or drugs in a laborotary enviroment.

The unit requires a 9V power supply and a single logic control input with ground, a logic 1 pulse (High) will cause the liquid feeder to administer the user preset amount of liquid food (Condensed Milk in our case) from the replaceable BD Discardit II 2ml syringe.

The design has two parts, the controller (Main PCB/LCD/Buttons) and the feeder (Mechanical) which are connected together using a standard one-to-one 9pin D type male to female cable. The main PCB (printed circuit board), LCD and switches are mounted in a small housing allowing remote parameter changes without disturbing the experiment. The Feeder unit is designed using Google Sketchup and 3D printed using a FormLabs Form 2 SLA (Stereolithografie) 3D printer, assembly of the mechanical parts is quite labour intensive and modification of the motor for this application requires the use of a lathe.

Controller Unit

Parts List

Part Part Description Manufacturer Part ID Order URL
U1 Microchip PIC18F23K20 MPU Microchip 666-9860 RS Components
U2 L297D Stepper Motor Driver SOIC STMicroelectronics 102-3535 RS Components
U3 L298P013TR Dual Full Bridge Driver STMicroelectronics 880-5308 RS Components
U4 SMD 3.3V Regulator TLV111733 Texas Instruments 923-3827 RS Components
U5 L78S05CV 5V Regulator TO220 STMicroelectronics 179345 Conrad
D1-8 Schottkey Diode SK26L PanJit 1304995 Conrad
R1,2 Resistor SMD 1206 1 Ohm 1/2W Panasonic 1473248 Conrad
R3 Resistor SMD 0805 22k Ohm 1/8W Tru Components 1584677 Conrad
R5 Resistor SMD 0805 3.3k Ohm 1/8W Tru Components 1584493 Conrad
R4,6-13 Resistor SMD 0805 2.2k Ohm 1/8W Tru Components 1584491 Conrad
C1 Capacitor SMD 0805 3300pF Thomsen 460338 Conrad
C2,3,5,7 Capacitor SMD 0805 100nF 50V Samsung 454108 Conrad
C4 Elecrolytic Capacitor 470uF 16V Yageo 445373 Conrad
C6 Elecrolytic Capacitor 100uF 16V Yageo 445579 Conrad
J1-6 Pin Strip Header 8Pin 3A BKL Electronic 742235-VQ Conrad
J4 90° D9M connector MH Connectors 747176-VQ Conrad
J8 Low Power connector Socket 2.1mm 5.5mm BKL Electronic 733946 Conrad
J9 BNC Connector Socket TRU COMPONENTS 1564888 Conrad
Box ABS Case 121x94x34mm Hammond 493-6032 RS Components
LCD LCD 16x2 White on Blue Gleichmann 183045 Conrad
SW1-4 Momentary Switch TC-D6SW TRU COMPONENTS 2238782 Conrad
PCB Strip Board Paper/Copper 2.54mm Rademacher 529531-62 Conrad
PSU Plugin Powersupply 9V 2A Mean Well 1837961 Conrad

liquid feeder schematic
Liquid Feeder Schematic

liquid feeder PCB
Liquid Feeder PCB

1. PCB Assembly

PCB Gerber files are supplied allowing production and ordering, the origional Proteus design file is also supplied incase any modifications for specific requirements are necessary. All components of the PCB are mounted by hand and special attention should be applied to the motor driver (U3) as the underside of the component is used as a heat sink and must be soldered to the PCB, this is done from the reverse side of the PCB using the through holes integrated on the PCB design.

2. LCD Preparation

The LCD requires that a few jumpers and components are added directly to the LCD module, this reduces the amount of connections between the main PCB and the LCD, the schematic below shows the necessary modifications. LCD mod
LCD Schematic

LCD PCB
LCD Modification: Shows how components are directly mounted to LCD module.

3. Controller assembly

All components are mounted in a plastic housing and necessary holes for the the LCD, switches and connectors are drilled accordingly. control front
Front Panel: Showing LCD unit and the four buttons for operation.

control back
Back Panel: Showing connection to feeder unit(D9), trigger input(BNC), on/off switch and power connector(low power connector).

switches schematic
Switches Schematic: Showing connections between front panel switches and main PCB.

buttons side
Button Mounting: A peice of Strip board is used to mount the switches inside the case.

PCB mounting
LCD/Buttons: The LCD is simply held in place with hot glue.

controller open
Finished Controller: The main PCB is mounted inside the housing.

d9controller
Controller wiring From main PCB to D9 connector.

4. Programming

The Microprocessor must be programmed with the included program, this is performed using a Microchip Pickit 3 In-Circuit Debugger/Programmer and the Microchip MPLAB IDE X software, once the included project is added to the programming software the PicKit programmer can be plugged directly into the J1 on the main PCB and the program uploaded to the microprocessor.

Feeder unit

Feeder Parts List

Part Part Description Manufacturer Part ID Order URL
M1 Stepper Motor 0.25Nm 0.6A EMIS 198398 Conrad
SW5,6 Microswitch125V AC 3A Hartmann 704713 Conrad
Rod Threaded Rod M3 500mm REELY 297984 Conrad
Spacer 10mm M3 Brass Spacer Elektromechanik Schaefer GmbH 526630 Conrad
J10 D-Sub Connector 9pin Female Molex 2447529 Conrad
Cable D-Sub9 Cable M-F 2M Pheonix Contact 673801 Conrad
Wire Jumper Wire 1x0.2mm Tru Components 1567899 Conrad

1. Parts Preparation

The motor (M1) has an output shaft which requires modification, this is best performed on a lathe, The motor should be carefully dismantled and the rotor removed.

  1. Using a lathe the shaft of the rotor should be shortened to the same length as the shorter side of the rotor meaning the assembled motor has no protruding shaft from either side.
  2. Using a lathe the complete length of the rotor/shaft should be drilled out using a 2.5mm drill bit mounted in the tailstock, it is very important that the drilling is centered correctly for smooth operation and this can be achieved by using a centre drill first as a guide before the 2.5mm drill bit.
  3. Using a lathe an M3 thread must be cut within the hole drilled in step two, the M3 Tap should be mounted in the tailstock and the tailstock should be freely moving on the guide ways, by turning the main spindle chuck holding the rotor by hand the thread can be accurately cut through the entire length of the rotor shaft.
  4. The four screws holding the motor together should be replaced with M3x35 screws or shortened to 35mm length.
  5. The motor should now be reassembled paying particular care to making sure there is no small pieces of metal swarf trapped within and all parts are sufficiently clean, any dirt or swarf will cause the motor to jam. The motor cover (1) should be mounted to the motor using the replacement M3x35 screws.

A piece of brass M3 threaded rod should be cut to a length of 83mm and the threads cleaned on each end.

Once all parts are 3D printed a small amount of cleaning/trimming and sanding is required to allow the slider (5) to move freely within the main body (6) and all parts to accurately fit together without force. The following drawing shows all parts for assembly.

assembly
Complete Assembly

2. Assembly of parts

The 10mm M3 spacer is inserted into the slot on the slider (5) so that the internal thread can be seen through the hole, the threaded brass rod should then be inserted into the hole and screwed into the inserted spacer, it is necessary to apply some thread lock to stop the threaded rod from unscrewing itself during operation.

sliderpic
Assembled slider

The slider (5) can now be inserted into the main body (6), be sure that the slider is free moving in its guide ways for the full extent of its movement. A small amount of general purpose grease is recommended to be applied to the guideway and slider as well as the threaded rod.

The motor mount (3) can now be mounted to the body (6) and secured using two countersunk 3x10mm self tapping screws.

With the slider (6) retracted so that the threaded rod is at its longest the motor (2) can be screwed onto the threaded rod as far as it will go before touching the motor mount (3), the motor (2) can now be pushed until it is seated with the motor mount (3) and secured using four M3x10 screws.

The syringe lock (7) can be secured to the body (6) using a M3x10 screw, this should not be too tight as it is required to rotate and either lock the syringe in place or unlock the syringe for replacement or cleaning.

The two end stop microswitches (4,8) can be slid on to the mounting guide pins, care must be taken doing this as the guide pins are quite fragile.

The D9 connector (9) can be mounted into the back cover (10).

Wires should be connected to the two microswitches (4,8) and connected to the D9 connector as shown in the wiring diagram below. The wires from the motor should be shortened and also connected to D9 connector as shown in the wiring diagram.

Wiring
Feeder wiring schematic: showing connection between motor and empty/full switches to D9 male connector.

The back cover can now be fitted in place paying close attention that any wires are not in the path of the slider.

Mounts

Two mounts have been designed for our applications and the sketchup drawings included, the drawings can easily be modified to suit other requirements and fittings with the majority of the work already done.

The mount shown below fits in place of the motor cover (1) and then allows the feeder to be mounted on a moveable stand.

mount2
Mount to fit on stand (fits in place of standard motor cover)

The second mount is designed for a permanent position on our behavour setup, once the mount has been fixed to the setup the feeder can be simply slid in and out of the mount making syringe replacement, refilling and cleaning very simple.

mount
Mount (to fit our application): This mounting system allows the feeder to easily be removed for cleaning.

wire mount
Wire Clip: A simple wire clip allows the feeder to easily be removed for cleaning.

setup mounting
Setup: For our application three feeder units are mounted vertically.

controllers
Controllers: Three controllers are mounted on the wall by using magnets and a sheet of steel mounted to the wall.

Operation

The controller and feeder are connected using a standard D9 male to female serial cable, once the power supply is connected the LCD will illuminate and the program will initiate. A simple menu structure for the control of operation is shown below.

Menu 1
First Menu: When INC (RUN) is pressed the unit will enter RUN mode.

Menu 2
Run Mode Display: This shows the unit is in RUN mode and is ready for operation and waiting for an external trigger. Pressing DOSE at any time will administer the set quantity. Pressing the SEL (EXIT) button will exit RUN mode and return to the First Menu.

Menu 3
Setup Menu: When DEC (SETUP) is pressed on the First Menu the program enters SETUP mode.

Menu 4
Set Quantity: When INC (SET AMOUNT) is pressed in the SETUP Menu the quantity to be administered can be set using the INC/DEC buttons, pressing the SEL button will accept this new quantity and save it to memory while also exiting the QUANTITY Function. The new quantity is saved in SRAM memory and will be automatically recalled even after a power cycle, units are in ul(micro litres)

Menu 5
EMPTY/FILL: When DEC (EMPTY/FILL) is pressed in the Setup Menu the unit is able to fill or empty the syringe of whatever liquid is being used (in our case condensed milk), by pressing INC (FILL) the syringe will be fully retracted filling the syringe with liquid, by pressing DEC (EMPTY) the syringe will be fully protracted emptying the contents of the syringe. Pressing the SEL button will stop either process and return to the previous menu.