NEW
20 Tracks Sound Recorder
SD FAT32 Sound Recorder
OLED Frequency Counter ATtiny85
SD Card Data Logger
FAT32 Player ATtiny85/45
CH341 USB TO I2C/SPI/EPP
USB to I2C OLED
USB to LCD
USB Input Output
SD CARD
CH376 USB Picture Frame
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
Picture Frame PIC16F690
Color OLED Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
Arduino Picture Frame
FREQUENCY COUNTER
AD9833 Waveform Generator
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
OLED Frequency Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
OBD2
OBD2 RPM meter PIC16F876A
OBD2 Engine Rev Counter
OBD2 Diagnostic app
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope
THERMOMETER
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
Serial Thermostat
USB DS18B20 Sensor
TIMER / CLOCK
Cuckoo Clock
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Clock Thermometer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION
Analogue to USB (CH341)
MCP3201 on Serial Port
PC Analog Input (USB-UART)
SERIAL PORT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to Serial
OTHERS
Musical Doorbell
Talk to Arduino
HC-SR04 Sensor
OLED Amp Meter
PC digital I/O (no coding)
Analogue Signal to LPT
LCD Display on LPT
Water Softener
Solar Charger
Music, Birthday Card
Code Lock
SMALL PROJECTS  
  Technical Tips  

PIC THERMOMETER FOR CHROME BROWSER

USB thermometer using DS18B20 as a temperature sensor. PIC C code and a circuit diagram.
The temperature can be displayed in Chrome, Edge and Opera browsers https://developer.chrome.com/en/articles/serial/#browser-support . Run the PIC connected via USB to Serial Adapter, open file web_thermo.html in the browser and click Connect. For temperature below zero the display is in blue. The html includes javascript.
USB-UART can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p3519243.m570.l1311&_nkw=usb+to+uart
You are free to use the circuit diagram and the code with no limitations.

usb usb

line

ARDUINO THERMOMETER FOR CHROME BROWSER

USB thermometer using DS18B20 as a temperature sensor.
The temperature can be displayed in Chrome, Edge and Opera browsers https://developer.chrome.com/en/articles/serial/#browser-support . Run the Arduino connected to PC, open file web_thermo.html in the browser and click Connect. For temperature below zero the display is in blue. The html includes javascript.
Arduino lib. https://github.com/matmunk/DS18B20/tree/master
You are free to use the circuit diagram and the code with no limitations.

usb 

line

CH341 USB THERMOCOUPLE THERMOMETER 1024 °C

CH341 module (from eBay) converts USB to I2C/SPI/EPP. MAX6675 K type thermocouple module. Temperature range is 0-1024 °C with resolution of 1/4 degree. The MAX6675 SPI sends 2 bytes of data.
PC app is in Visual Basic-VS2010. The module links are set to 5V and i2c-spi.
MAX6675 can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2332490.m570.l1313&_nkw=max6675&_sacat=0
The VB wrapping of DLL is taken from GitHub https://github.com/aa4e/ch341_vb . DLL is installed to PC by setup.exe in downloaded driver CH341PAR.ZIP https://www.wch.cn/downloads/CH341PAR_ZIP.html

ch oledusbvb

line

AHT21B SENSOR THERMOMETER USING CH341

Thermometer using CH341 module (from eBay) converts USB to I2C/SPI/EPP. The module links are set to 3.3V and i2c-spi. The VB wrapping of DLL is taken from GitHub https://github.com/aa4e/ch341_vb . DLL is installed to PC by setup.exe in downloaded driver CH341PAR.ZIP https://www.wch.cn/downloads/CH341PAR_ZIP.html
Temperature / humidity sensor AHT21b ranging -40 to 120. The CH341 sends measurement trigger and sensor sends back 1 byte of state, 5 bytes of data for temperatue and humidity and 1 byte CRC. Sensor accuracy is 1% for humidity and 2 degrees for temperature.
Ebay: https://www.ebay.co.uk
Windows app code is in Visual basic in freeVisual Studio 2010.

You are free to use the circuit diagram and the code with no limitations.

usb uart

line

LCD THERMOCOUPLE THERMOMETER 1023 °C

Thermometer using MAX6675 K type thermocouple module. 16x2 LCD display. Temperature range is 0-1023 °C with resolution of 1/4 degree. The MAX6675 SPI sends 2 bytes of data.
Software is for PIC16F1827 and PIC16F628A, circuit is for both PICs.
MAX6675 can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2332490.m570.l1313&_nkw=max6675&_sacat=0
The LCD module has to be HD44780 compatible.
You are free to use the circuit diagram and the code with no limitations.

 usb

line

THERMOCOUPLE THERMOMETER 1023 °C FOR PC

Thermometer using MAX6675 K type thermocouple module. Temperature range is 0-1023 °C with resolution of 1/4 degree. The UART module reads the 16 bits of data by bit banging the MAX6675. Supply of 3.3V to the MAX6675 is from the UART module.
Windows app code is in Visual basic in freeVisual Studio 2010.
The USB to Serial I used is: https://www.ebay.co.uk/itm/CP2102-USB-2-0-to-TTL-UART-Module
MAX6675 can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2332490.m570.l1313&_nkw=max6675&_sacat=0

You are free to use the circuit diagram and the code with no limitations.

usb uart

line

USB THERMOMETER FOR PC

USB thermometer using DS18B20 as a temperature sensor. Included VS2010 vb code, PIC C code and a circuit diagram. The PIC sends 2 bytes of temperature and the USB to UART opens a serial port in the PC. The VB app lets you select the active port.
Software is for PIC16F1827 and PIC16F628A, the VB app and circuit are for both PICs. Windows app code is in Visual basic in freeVisual Studio 2010.
USB-UART can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p3519243.m570.l1311&_nkw=usb+to+uart
You are free to use the circuit diagram and the code with no limitations.

 usb

line

USB THERMOMETER

USB thermometer using diodes as a temperature sensor. Included VS2005 C# code, PIC ASM code, PIC C code and a circuit diagram. The PIC microcontroller has 10 bit analogue to digital converter. The circuit is powered by the USB. The interface to the PC is HID class.
Diode make linear temperature sensor, the junction voltage changes at about 2.32mV/centigrade. The sensor is 4 diodes 1N4148 in series.
CALIBRATION: The calibration of the sensor and other components in the circuit is done in the PC application. When you start the application for the first time it creates a file 'cal.dat' in the same folder. The file has the actual temp entered by the user. Type the actual temp from another thermometer that you know reads correctly and press 'Calibrate'.
HID class (human interface device) is a class of devices like the mouse and the keyboard, the data transfer rate is limited to 64KB/S.
C# code is modified Microchip code from the USB framework, Microchip Solutions v2012-04-03.
The source code is derived from freeware from these sources: http://janaxelson.com/usb.htm , http://openprog.altervista.org/USB_firm_eng.html
Code was written on MPLAB 8x and compiled with C18 ver 3.30. PIC18F2550 was programmed using Velleman K8076.
Software includes PIC code and C# code. You are free to use the circuit diagram and the C# with no limitations.

 

Circuit Description
See also Technical Tips

PIC18F2550
Pin 3 is the analogue input. Input voltage range is +Vref minus -Vref.
Pin 4 is the -Vref, Pin 5 is the +Vref, at 2.5V .
LM385 2.5 is a precision zener, equivalent can be used.
Pin 14 is 3.3V internal supply for the USB transceiver.
Pins 15,16 are the data lines to the USB connector on the PC.
Pin 20 is the PC 5V powering the PIC. It is limited to 100mA by the PC. 0.47uF is for decoupling.
For USB wiring info: http://www.interfacebus.com/Design_Connector_USB.html

SENSOR
4 of 1N4148 diodes in series. When soldered with the diodes body next to each other you get small size sensor.

line

USB THERMOMETER USING DS18B20 SENSOR

USB thermometer DS18B20 temperature sensor. Included Visual Basic 6 software, Visual Studio 2005 C# code, PIC C code and a circuit diagram. The PIC interface to the PC is HID class.
The DS18B20 sensor has a range of -55 to 125 centigrade in accuracy of 0.5 degree and resolution of 9 to 12 bits. The interface to the pic is via one digital line, the 1 and 0 is determined by pulse duration. The code includes the commands to read temperature and set the resolution.
HID class (human interface device) is a class of devices like the mouse and the keyboard, the data transfer rate is limited to 64KB/S. The PC already has a driver for HID USB.
C# code is modified Microchip code from the USB framework, Microchip Solutions v2012-04-03.
VB6 code includes guidance to setting up the PC. The PC register the PID (Product ID) and VID (Vendor ID) of the USB device when it's plugged, the VB code uses these ID's to communicate with the device. For commercial VID it is needed to buy it from USB-IF, but in your lab you can use any number.
The source code is derived from freeware from these sources: http://janaxelson.com/usb.htm , http://openprog.altervista.org/USB_firm_eng.html
You are free to use the circuit diagram and the VB software with no limitations.

 

Circuit Description
See also Technical Tips

PIC18F2550
Pin 14 is 3.3V internal supply for the USB transceiver.
Pins 15,16 are the data lines to the USB connector on the PC.
Pin 20 is the PC 5V powering the PIC. It is limited to 100mA by the PC. 0.47uF is for decoupling.
For USB wiring info: http://www.interfacebus.com/Design_Connector_USB.html

DS18B20 SENSOR
Any type of case can be used.



Name:

Comments and questions

Copy the number from the picture It stops net-robots from adding comments.



15.02.2024 - 13:49
Name: Moty
Comment: Hi Djalltra, Only the pic18 with diod sensor doesn't compile with XC8.

15.02.2024 - 10:19
Name: djalltra
Comment: hi moty will this code compile using mplabx ide

27.03.2016 - 17:06
Name: mustafa askary
Comment: Great Projects!

24.07.2014 - 00:40
Name: kanishka
Comment: great great great... you are great person.wish u all the best

21.06.2014 - 17:23
Name: pic12f675
Comment: good. thanks

17.04.2013 - 07:08
Name: Ugur
Comment: thanks

28.03.2013 - 23:42
Name: king
Comment: awsem motty rocks

31.12.2012 - 17:57
Name: mnati
Comment: many thanks

31.12.2012 - 17:57
Name: mnati
Comment:

27.12.2011 - 13:02
Name: Moty
Comment: Hi Lutz, Yes, the cal.txt has the calibration details of the sensor. The circuit uses the 5V supply as reference voltage too, so to get the same readings you need identical 5V in both computers. 1% error in the supply voltage will give about 2% error in temperature readings. For the sake of simplicity I sacrificed accuracy. The only way to overcome that is to add an accurate voltage reference to the circuit.

26.12.2011 - 21:33
Name: Lutz
Comment: Upss, read first then write I just have seen that Cal.Data ist stored to CAL.TXT Therefore I guess it will work fine to transfer this data. regards Lutz

26.12.2011 - 21:27
Name: Lutz
Comment: Hello Moty, I build this Thermometer aswell, works fine !! My question is about calibartion. I like to do the calibration at my work, were we do have a climate cabinet. So doing calibration then will store the offset some where on that Work-PC. Is it possiable than to tranfer cal. data to my home PC ?? Were are the calibration is written to ?? regards Lutz
13.04.2010 - 01:37
Name: Spaducci
Comment: Great thing!

iconFlag Countermoty22.co.uk  2008-2024