Logstash JSON filter to detect events

Logstash JSON filter to detect events

I wanted to filter out JSON encoded data coming from OSSEC client to logstash and then forward the parsed JSON to clients connected over websocket. This filter could be useful for detecting and sending alerts on occurrence of certain events, so I wrote a filter to parse only the JSON encoded data and discard any other data.

Read More

PIC32 and ILI9328 TouchScreen User Interface using Microchip Graphic Library

PIC32 and ILI9328 TouchScreen User Interface using Microchip Graphic Library

I developed this user interface (UI) using pic32, microchip GDD tool and microchip graphic library.

I recorded the test in this video

Read More

Testing ILI9328 2.8″ TFT (Touch Screen) with PIC32MX795F512L

Testing ILI9328 2.8″ TFT (Touch Screen) with PIC32MX795F512L

performed a simple test to interface ILI9328 2.8″ TFT (Touch Screen) with PIC32MX795F512L, later on I also wrote SPI based touchscreen driver for analog devices ADS7843. The main program checks for the data available pin and if touchscreen data is available it reads through SPI:

Read More

Testing Texas Instruments keyfob (CC2540) with custom android app

Testing Texas Instruments keyfob (CC2540) with custom android app

I build a test android app to communicate with Bluetooth Low Energy keyfob CC2541 kit from Texas Instruments.

The end project was to design and develop a small size anti-theft/forget device and mobile phone application which can communicate with the device. This device can be placed inside wallet, briefcase, etc  and on link loss the app can alert mobile phone user about lost item. And device should be able to run on a coin cell for duration of 8-12months.

During Schematic and PCB design I also added accelerometer and intervalometer for future application. Unfortunately the project never got off the ground but app and PCB was designed and developed.

pcb schem

inductor, capacitor and resistors used were 0201 size.

intervalometer for taking picture on phone using the device.

Read More

MCP3208 A/D converter on Pinguino 18F2550

MCP3208 A/D converter on Pinguino 18F2550

If you are working on Pinguino and want to use MPC3208 ADC for reading analog sensors then the following code will be helpful to you. This code is based on arduino example, I have ported it to pinguino 18F2550.

Read More

Interfacing 16×2 LCD with Pinguino 18F2550

Interfacing 16×2 LCD with Pinguino 18F2550

Recently in one of my project I needed to add 16×2 LCD so I tried to use Pinguino LCD library provided in the example folder of the IDE. But for some reason it didn’t worked, so I downloaded HD44780 datasheet and build my own LCD interface program.

Read More