Posts tagged: MikroC

Mikromedia 3D Sprites Firmware

By , October 6, 2014 1:27 pm

I've put together a new firmware for the MikroElektronika Mikromedia PIC32 development board. The firmware is a demo that draws rotating shapes on the screen using sprites. I created this demo because I've wanted to try out Dragan Regodic's TFT graphics library on Libstock and this seemed like the perfect learning project for the task.

The example is based upon porting the classic 1990's Metal Basic sprite demo "TriCube" by Ivan Freyman.

You can control the Mikromedia 3D Sprites demo using the touch screen or with the buttons on a MikroElektronika Mikromedia Gaming Shield to control the rotation of the shapes, and change the active model between a plane, jack, cube, pyramid, and a octahedron.

The code was written using MikroC Pro for PIC32 and VisualTFT.
Continue reading 'Mikromedia 3D Sprites Firmware'»

Interfacing a MikroElektronika SHT1x Click Board with a Raspberry Pi

By , August 24, 2014 5:02 pm


After the success of my previous MikroElektronika GPS Click, and Thumbstick Click board blog posts, I thought I'd write up a tutorial on reading temperature and humidity with a MikroE SHT1x Click board and a Raspberry Pi. This blog post includes a python script that reads the SHT1x Click board data using I2C and displays the temperature, humidity, and dew point results from the sensor.

Raspberry PI Interfacing Notes

Raspberry Pi and SHT1x Click Board

The SHT1X Click board is connected to a Raspberry Pi using the MikroE Pi Click Shield. This shield connects to the Raspberry PI GPIO header pins and lets you attach MikroBus format Click boards.

If you don't have a Pi Click Shield or a SHT1x Click board, you can get one from the MikroElektronika Webstore, or from Digikey, or Farnell.

Pi Click Shield

The SHT1x Click board uses an I2C based Sensiron SHT11 module for reading the temperature and humidity. The temperature sensor measures a range of -40°C to +100°C in half degree increments. The board is powered on 3.3 Volts from the GPIO header on the Raspberry PI.

Continue reading 'Interfacing a MikroElektronika SHT1x Click Board with a Raspberry Pi'»