Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Programming 24LC256 I2C EEPROM

interfacing eeprom 24LC256

In many microcontroller projects, you need some non-volatile memory – which preserves data even when power is off. A most popular type of such memory is Flash or EEPROM. Many MCUs like AVR or PIC already have some EEPROM inside chip that may suit your needs. But in many cases, it is not included, and you may need to connect it externally. EEPROMs with I2C interface is very common in such situation as they don’t need lots of I/Os (only two wires). If you decided to add an EEPROM chip into your project, check out the handy guide on how it works written by Jesus Echavarria. As an example, he took 24LC256 EEPROM which capacity is 32K x 8 bytes. The chip works in pretty wide voltage range – between 1.7V and 5.5V which is great either for 3.3V or 5V setups. He covers all the basic things you need to consider, including selecting proper chip slave address in I2C line. Then performing reading and writing EEPROM data in byte and page modes. This guide might serve as a nice… Continue reading

PSoC Range Finder – The Simple Ultrasonic Distance Meter!

You’re searching for a reliable and compatible Ultrasonic Distance Meter, but those that available on the market didn’t seem to fix your needs? Well, you’re better saving up your time, by develop a simple PSoC Range Finder! The PSoC Range Finer is a quite simple, inexpensive ultrasonic distance meter. Those electronic components that needed to build this gadget are: A PSoc device, Two 40 kHz ultrasonic transducers, Two resistors, and Two capacitors. The best part about the PSoC device is all the digital and analog devices are supplied by Programmable system on chip. Furthermore, it enables some typical applications, such as positioning for robotics, generic distance measurement and contactless liquid level measurement! There are two different modes in this PSoC Range Finder, which as normal mode and calibration mode. During the normal mode, the software is continuously run the transmitted ultrasonic burst and waits for return ultrasonic signal. The range value is written to the LCD and sent to serial interface. While in the calibration mode, the software is similar to normal mode, except the measured value is compared with… Continue reading