-
Notifications
You must be signed in to change notification settings - Fork 2
Assembling FORCE
- Download Arduino IDE First, install the FORCE library from the Arduino IDE. This is done by searching for the FORCE library in the Arduino library manager and installing the latest version. If prompted, all Arduino to install all dependency libraries. The library manager is opened using Tools > Manage Libraries. You can explore the example programs by clicking File > Examples > Force.
- Install relevant Arduino boards to run the Adalogger MO and Feather m4
You will also need to add the board being used, the AdaFruit Feather M4 Express.
Tools > Board: > Board Manager >
And then search and install AdaFruit SAMD Boards.
Then select Tools > Board > AdaFruit Feather M4 Express. If the appropriate board is not selected there will be errors when compiling, most likely concerning the analog resolution.
- Install Dependency libraries If the dependency libraries were not automatically installed, you will need to search each individually using the library manager. Required Libraries
-
- HX711 Arduino Library (v0.7.4) by Bogdan Necula, Andreas Motl
-
- SdFat - Adafruit Fork (v1.2.3) by Bill Greiman
-
- RTClib (v1.13.0) by Adafruit
-
- Adafruit ST7735 and ST7789 Library (v1.7.2) by Adafruit
-
- Adafruit seesaw Library (v1.4.2) by Adafruit
-
- Adafruit Neopixel (v1.8.0) by Adafruit
-
- Adafruit GFX Library (v1.10.7) by Adafruit
-
- Adafruit Adafruit_SPIFlash (v3.4.1) by Adafruit
-
Order the PCB FORCE uses a custom printed circuit board (PCB) to minimize wiring and increase reliability of the electronics. The BRD file (what you use to order the PCB) is in the files area.
-
Populate the PCV Start by soldering on all seven headers. These include:
- two short female headers for the Adalogger (one 12 pin, one 16 pin)
- one short female headers for each Load Cell Amplifier (5 pin)
- one male header for the solenoid power (two pin````)
- a six pin (3 x2) header for the beeper
- one female aux header (?) (3 pin)
- An optional switch can be added at sw1 IMPORTANT! Solder all of these onto the BACK of the PCB, the side that says FORCE in white lettering and has no individual pin labels. Next, solder the desired number of BNC headers.
- Solder headers onto Adafruit breakout boards Solder male headers onto 3 Adafruit breakout boards: each Load Cell Amplifer and the Seesaw feather screen. Solder male stacking headers unto the Feather m4 Express and the Adalogger. Put the coin cell battery into the Adalogger breakout at this point. In the final device, the break out boards will be stack: PCB -> Adalogger -> Feather m4 -> Seesaw screen.
-
Solder the load cells to the Load Cell Amp breakout boards. Each wire of the load cell should be soldered into the appropriate connection in the Load Cell Amp, indicated by color. This can be done by stripping a 1.4'' of wire and placing it through the whole, similar to a normal pin header. It is recommended to place a glob of hot glue on the board over the top of the soldered wires, once it is confirmed the connections are working. This helps prevent the fragile wires from breaking and falling out of the Load Cell Amp. image
-
Assemble the sipper apparatus. The sipper apparatus consists of a solenoid, two sections of tubbing, a small metal pipe, a syringe, and a syringe connector. First, cut a 4'' section of the thin metal pipe, from which the mouse will lick. Cut the rubber tubing into one 1' section to connect the sipper tube to the solenoid. Cut another 4'' section of the rubber tubing to connect the solenoid to the syringe. The solenoid consists of two parts, a thinner and taller cylinder with 2 male headers for wire connections (A) and short cylinder with a hole in the middle (B). The rubber section of cylinder A must be placed in the hole in cylinder B. Take care to align the small hole in A with the holes in B. It is a tight fit, and can be aided by wetting the rubber section slightly and bracing against a desk. A small click can be felt when the pieces are properly put together. Finally, Put the components together as shown below.
-
Assemble the electronics. Place all boards into their respective headers.
-
Download FORCE sketch and flash FFED3 Before assembling the device into the 3D housing, you should confirm that it works. Extract the latest FORCE Arduino Sketch (in the files area) and the sketch "??" to where ever you like to keep Arduino sketches (for me it's: /Documents/Arduino).
Open the FED3_SetClock_063019.ino sketch in the Arduino IDE and flash this code to the M0. You should see a message on the screen that the RTC was set correctly.
-
Print 3d Parts The 3d part stl files are available in the files area.
-
Mount PCB Board Screw the PCB board into the 3d housing using the appropriate M2 screws.
-
Secure the sipper apparatus Slide the syringe and solenoid into the respective holders on the 3d print.
-
Secure the load cells The load cells should be screwed in place with the appropriate M3 crews. They should be screwed snug.
-
Glue in the front magnet
-
Test device (bnc, solenoid).