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  

SD CARD TEMPERATURE / VOLTAGE LOGGING

Logging temperature from sensor DS18B20 -55 to 125 deg C or 5VDC input to the PIC's ADC. Logs up to 65,000 readings to a TXT file on a CD Card formatted FAT32, cards can be SD or SDHC (up to 32GB). PIC16F is short on RAM to write 512 bytes (full sector) to the card, so it cannot create a file, instead it modifies a file on the disk. The code finds the file reads the name and uses it to set the log interval time.
To create a text file take any file (for example mp3 file) the size needed or larger and change the extention to TXT by renaming it. Text (TXT) file has to be 910KB in size to contain 65,000 readings, if less than 65,000 readings needed the file can be smaller, for each line of reading 14 bytes are needed.
After the code reads 72 bytes of 36 temperature/voltage readings it calculates the temperature/voltage and convert it to text and writes it into single sector on the card. It repeated for 65,000 readings. The SD card is written every 36 readings so when power is off or STOP is pressed while logging up to 36 last readings are lost, make sure to stop logging 36*interval time longer than needed.
Button LOG starts the logging and STOP resets the logging. Interval time is 2 to 255 seconds, it is set by the text file name. The name must have 3 numbers i.e. 031 (31 seconds) and TXT extension in upper case.
For more accurate voltage reading 1K resistor can be shorten but make sure voltage doesn't exceed 5V.
TO SETUP THE CARD
Format the card with FAT32.
Use PC to create a text file. The name must have 3 numbers i.e. 031 (31 seconds) and TXT extension in upper case i.e. 031.TXT.
Copy the file to the card with no other files added.
Sample file is included.

vmini7219 jpg

line

SD CARD VOLTAGE LOGGING ATtiny85/45

Logging 5VDC input to the ATtiny ADC. Logs up to 65,000 readings to a TXT file on a CD Card formatted FAT32, cards can be SD or SDHC (up to 32GB). ATtiny is short on RAM to write 512 bytes (full sector) to the card, so it cannot create a file, instead it modifies a file on the disk. The code finds the file reads the name and uses it to set the log interval time. After the code reads 72 bytes of 36 voltage readings it calculates the voltage and convert it to text and writes it into single sector on the card. It repeated for 65,000 readings. The SD card is written every 36 readings so when power is off while logging up to 36 last readings are lost, make sure to stop logging 36*interval time longer than needed.
To create a text file take any file (for example mp3 file) the size needed or larger and change the extention to TXT by renaming it. Text (TXT) file has to be 910KB in size to contain 65,000 readings, if less than 65,000 readings needed the file can be smaller, for each line of reading 14 bytes are needed.
Power on starts the logging. Interval time is 2 to 255 seconds, it is set by the text file name. The name must have 3 numbers i.e. 031 (31 seconds) and TXT extension in upper case.
For more accurate voltage reading 1K resistor can be shorten, make sure voltage doesn't exceed 5V.
ATtiny is programmed using Arduino IDE and Arduino as ISP. Use these instructions https://gist.github.com/ij96/804e731bd31dbb95b2b043e93c79ceab with the difference of burning bootloader with setting "Clock Source 4MHz(internal)". ATtiny85 or ATtiny45 can be used.
TO SETUP THE CARD
Format the card with FAT32.
Use PC to create a text file. The name must have 3 numbers i.e. 031 (31 seconds) and TXT extension in upper case i.e. 031.TXT.
Copy the file to the card with no other files added.
Sample file is included.

vmini jpg

line

USB FLASH CH376 VOLTAGE LOGGING

Logs up to 2,000 voltage readings to a TXT file on a USB Flash formatted FAT32. The CH376 writes to the USB storage after every reading. the interval time is 1 second and can be set to 1 minute by the Interval switch. Data is written to a text file named LOG.TXT.
Button LOG starts the logging after creating the file LOG.TXT (32KB), if the file exists it replaced. pressing STOP stops the logging and fills up the rest of the file with spaces, after the LOG LED turnes off the USB memory can be removed.
The CH376 inputs must be 3.3V logic so the PIC VCC is 3.3V. The supply to the USB board is 5V. The board contains 3.3V regulator and that voltage can be used to power the PIC or external 3.3V regulator can be used. The analog input is 0 to 3.3V and accurate as the 3.3V supply. Regulator from eBay: https://www.ebay.co.uk
P-S link on the board is set to S (Serial).

ch3767219 jpg

line

OLED TEMPERATURE LOGGING USING DS18B20 SENSOR

Logging temperature from sensor DS18B20 -55 to 125 deg C. OLED display, 128x64, 0.96", SSD1306, I2C. Up to 96 (48 for PIC16F628A) temperiture readings can be logged, 16 per page. Each reading is stored in 2 bytes in the EEPROM of the PIC. Each log is displayed with number of log followed by temperature. PIC16F628A drives the OLED by software I2C.
On power up the interval time of logging is displayed in seconds, press button Stop/Inc to increase the time, 255 seconds max. To start logging press Log button and Stop/Inc to stop logging. Pressing Read button displays 16 readings, press Read to read next page.

72197219 7219

line

OLED VOLTAGE LOGGING ATtiny85/45

Logging voltage 0-5.115V at 5V supply. OLED display, 128x64, 0.96", SSD1306, I2C. Up to 96 temperiture readings can be logged, 16 per page. Each reading is stored in 2 bytes in the EEPROM. Each log is displayed with number of log followed by voltage.
On power up the interval time of logging is displayed in seconds, press button READ to increase the time, 255 seconds max. To start logging press LOG button. Pressing READ button displays 16 readings, press Read to read next page.
Sketch includes a lib tinyI2C that can be downloaded from GitHub: https://github.com/technoblogy/tiny-i2c/tree/master
ATtiny is programmed using Arduino IDE and Arduino as ISP. Use these instructions https://gist.github.com/ij96/804e731bd31dbb95b2b043e93c79ceab with the difference of burning bootloader with setting "Clock Source 4MHz(internal)". ATtiny85 or ATtiny45 can be used.

7219 7219

line

VOLTAGE LOGGING TO 24C512 EEPROM

Logging up to 32K voltage readings to 65K EEPROM using PIC16F1827 and 24C512. Connecting the PIC to a PC using USB to Serial converter module Visual Studio app reads the logged data and create a text file. Pressing LOG button starts the logging and STOP button stops and resets the readings counter. When the PC requests the data only the readings till STOP are sent.
The port number can be found in DEVICE MANAGER. Interval time can be 1 to 254 seconds, clicking UPDATE stores the interval time in the PIC eeprom, when the PIC starts it reads the interval time from the PIC eeprom. When clicking Create File the PIC reads the 24C512 and sends the readings to the PC via USB to Serial Adapter. The PC create a text file in the path written in the text box.
App code and EXE file are included. Sampling time can be set up to 2 million seconds. SAVE button saves the reading to a file log.txt in the folder of the app. COPY button copy the log text to the clipboard.
5V supply to the sensor and the PIC are from the 5V output of the USB to Serial module.
USB to Serial from eBay: https://www.ebay.co.uk/

uart7219 7219

line

PC TEMPERATURE LOGGING USING DS18B20 SENSOR

Visual Studio app logging temperature from sensor DS18B20 -55 to 125 deg C. The PIC connects to the PC using USB to Serial converter module. The port number can be found in DEVICE MANAGER. App code and EXE file are included. Sampling time can be set up to 2 million seconds. SAVE button saves the reading to a file log.txt in the folder of the app. COPY button copy the log text to the clipboard.
5V supply to the sensor and the PIC are from the 5V output of the USB to Serial module.
USB to Serial from eBay: https://www.ebay.co.uk/

uart7219 7219

line


Write a comment

iconFlag Countermoty22.co.uk  2008-2024