TinyWise - TSL1401CL + ATtiny85 filament width sensor

TinyWise - TSL1401CL + ATtiny85 filament width sensor

thingiverse

This is an ATtiny85 based version of filament width measurement tool. It is based on flipper's TSL1401CL filament width measurement tool. Video: http://youtu.be/iWMkjmjx1MI The LED on top of the tower casts the shadow of the filament on the TSL1401CL sensor. It is a line of photodiodes. Sensor output is read by ATtiny85 MCU and processed. Analog output signal (1,75 volts = 1,75mm) can be read by newest Marlin version for filament width compensation, that is adjusting extruding speed according to filament diameter variations. It is free software and aimed at being simple to build (no smd tools are required) and cheap (15€ in components + PCB). See instructions for build details Comments are welcome Instructions Case print the case (base and top) either in black or colour it black with a marker. I use 0.25mm layer height at 75mm/s, 40% infill, 3 perimeters, no support de-burr the 5mm led slot, 2mm filament hole and M3 screw guides using a drill bit insert a 5mm white led on the top of the tower, use the little "u" part to fasten it in place PCB build yourself the pcb using the provided fritzing file or order it through fritzing fab service or oshpark (https://oshpark.com/shared_projects/fWmrjkiq) R1 = 10k ohms, R2 = 1k ohms, R3 = R4 = 1.4K ohms (R3 and R4 must be equal, any values from 1K to 10K should work) C1 = C2 = 0.1uF = 100nF C3 = C5 = C6 = 10uF, C4 = 1uF U1 = LM7805 TSL1401CL linear sensor array (http://it.rs-online.com/web/p/array-di-fotorilevatori/7857692/) ATtiny85 microcontroller (http://it.rs-online.com/web/p/microcontroller/6962327/) Note on resistors I use a white high luminosity led, therefore I use 10k ohms as R1, you may need to lower it. R3 and R4 are used to pull HIGH the reset pin with a voltage divider that provides 2.5 volts, this is why they should be equal. When clicking the button, the reset pin is pulled HIGH at 5 volts. If you look at the code you will see that analogRead on reset pin is checked against 600, that is voltage is greater than roughly 2.5 volts. Soldering tips Although TSL1401CL is a smd component, it can be easy soldered with regular hand iron. Lightly tip each pad with solder, place the component and then melt solder with iron without touching the sensor. Start with one corner and then the opposite, make sure it is well aligned. Programming ATTiny85 If you have a spare Arduino Uno you can use it as ISP for programming the ATtiny85 with the Arduino IDE, alternatively you can use a specific programmer, see http://highlowtech.org/?p=1695.

Download Model from thingiverse

With this file you will be able to print TinyWise - TSL1401CL + ATtiny85 filament width sensor with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on TinyWise - TSL1401CL + ATtiny85 filament width sensor.