ADXL345 LCD I2C

2 wire setup (not counting power supply) Code and revelant libraries. #include <Wire.h> #include <ADXL345.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x20,20,4); // adres LCD I2C 0x20, 20 znakow w 4 wierszach ADXL345 adxl; int x,y,z; //wartosci osi x,y,z int ax,ay,az; //wartosci beazwzgledne osi x,y,z //ponizej znaki specjalne uint8_t center[8] = {0x4,0x4,0x4,0x1f,0x4,0x4,0x4,0x4}; uint8_t r1[8] = {0x2,0x2,0x2,0x1d,0x2,0x2,0x2,0x2}; uint8_t r2[8] […]

Continue reading →

ijoijo part 2

In previous post, ()prototyping went well. in order to move it to the “real life”, I’ve got clone of , simply because it is just cheaper, then to build my own Atmega 328 board. Everything will be powered by 3*1,5v AA batteries, in handy battery pack, that has convenient power switch built in. So after […]

Continue reading →

Prolific PL2303 Windows 8

Somebody screwed the pooch on this one, even though prolific says that old chip will not work with w8 it does, but with old,old,old drivers… PL2303_Prolific_Vista_332102 step 1 – uninstall (and delete) current driver step 2 – install what’s in the file step 3 – if it still not working, go to driver, update it […]

Continue reading →

ijoijo

That’s my little project im building for my little son, lights and siren for his little tikes car. Little visualisation of the idea. Developed in fritzing. (http://fritzing.org) Video of prototype And THE code. const int buttonA = 10; // the number of the pushbutton pin const int buttonB = 12; // the number of the […]

Continue reading →

ServoTester

Quick adn dirty servo tester for RC purposes. Code is modified debounce found at Arduino.cc I’ve used my 20×4 I2C LCD, though there is no suitable part in Fritzing, thus used regular 20×2. #include <Wire.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x20,16,2); // set the LCD address to 0x20 for a 16 chars and 2 line display #include […]

Continue reading →

Mega2560 as ISP for UNO

Title says everything, but it still sounds like a Morse Code, I’ve used my Arduino Mega 2560 to program (through my Arduino UNO) an Atmel Microcontroller, Atmega328p-pu picture says everything. as above wiring is: MEGA – 50 -> UNO – 12 MEGA – 51 -> UNO – 11 MEGA – 52 -> UNO – 13 […]

Continue reading →

74HC595

I’ve got around to practical application of Atmega328P and 74HC595, that will be a part of the project I’m currently working on. this time 74HC595 and 8 (so far… I’m shooting for 15) LED’s. Short video material: Image developed using Fritzing. Code based on Adafruit’s arduino lessons. int latchPin = 5; int clockPin = 6; […]

Continue reading →

Arduino rozne

poprzeczne i podluzne

Continue reading →

DHT11 and BT updated

Recently I’ve posted and modified a bit code in order to be easily interpreted by application I’ve compiled for Android. I’ve used appinventor in order to develop it. source package for appinventor is there –> DHT11Bluetooth_v101 Android application reads string that Bluetooth outputs and dissecting it, string format is T:xxxH:xxx where “xxx” are the values. […]

Continue reading →

LCD in I2C

Little side project was to reduce amount of wires on my LCD and I’ve succeded. #include <Wire.h> #include <LiquidCrystal_I2C.h> #define lcdAddr 0x20 // set the address of the I2C device the LCD is connected to // create an lcd instance with correct constructor for how the lcd is wired to the I2C chip LiquidCrystal_I2C lcd(0x20, […]

Continue reading →

DHT11 and Bluetooth

I’ve received finally a tiny Bluetooth, so I’ve added temperature sensor, and Nokia’s LCD and whipped up thermometer that sends temp through BT. Next step, add ethernet shield to all that. Image developed using Fritzing. #include <Adafruit_GFX.h> #include <Adafruit_PCD8544.h> #include <dht11.h> dht11 DHT11; #define DHT11PIN 2 // pin 7 – Serial clock out (SCLK) // […]

Continue reading →

NokiaLCD

Received my LCD from NOKIA 5110(or 3110 – can’t remember really) and started to play with it. I’ve used Adafruit’s libraries (they are awesome…). For download from there-> https://github.com/adafruit/Adafruit-PCD8544-Nokia-5110-LCD-library local copy though this one requires this one as well -> https://github.com/adafruit/Adafruit-GFX-Library local copy and below is effect of my HC-SR04 and this nifty LCD. image […]

Continue reading →

HC-SR04

This time, ultrasound sensor with my Arduino Mega 2560 and LCD Ultrasound sensor I’ve used is HC-SR04 also I’ve used additional Library found here local copy here Ultrasonic Sorry for poor quality video. image developed using Fritzing. /*LCD CONNECTION LCD 1- ARDU GND + POTENTIOMETER LCD 2- ARDU 5V + POTENTIOMETER LCD 3- POTENTIOMETER MIDDLE […]

Continue reading →

HC-SR04-easy

First steps with HC-SR04, Device that will let you know when you are closer than 10cm from the obstacle, it will turn on Red LED and signal you with buzzer. Otherwise only Green LED will be ON, as you will be in “safe” distance from obstacle. No video this time. image developed using Fritzing. /* […]

Continue reading →

ServoADXL345

And upgrade of the last setup with two servos, one going on X axis of accelerometer, and the other on the Y axis. though on this setup, servos are pulling a lot of current. image developed using Fritzing. #include <Wire.h> #include <ADXL345.h> #include <LiquidCrystal.h> #include <Servo.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); ADXL345 adxl; […]

Continue reading →

ADXL345

To the previous setup, ADXL345 + LCD, I’ve added a push-button, that will switch LCD’s functions, but not impairing other functionalities. image developed using Fritzing. #include <Wire.h> #include <ADXL345.h> #include <LiquidCrystal.h> #include <Servo.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); ADXL345 adxl; //variable adxl is an instance of the ADXL345 library // constants won't change. […]

Continue reading →

LCDAccel

Time to do something with that accelerometer I’ve got with my Mega. Now I’m a noob with Arduino, so I had to do some digging, and I’ve found great write-up about that accelerator. http://bildr.org/2011/03/adxl345-arduino/ also I’ve digged up and canibalized my old serial LCD 20×4 image developed using Fritzing. //Arduino 1.0+ Only! //Arduino 1.0+ Only! […]

Continue reading →

knightrider

Second attempt at more advanced play with LED’s was just a different pattern than previous, and for some reason it reminds me KARR from Knightrider. hmmm… wonder why ;) image developed using Fritzing. // give it a name: int led = 0; int krok = 8; int i = 0; int t1 = 50; // […]

Continue reading →

LEDL2R

First more complicated code (for me at least) than LED blinking on PIN 13, was left to right and back swoop.   image developed using Fritzing. // give it a name: int led = 0; int i = 0; int t1 = 25; // the setup routine runs once when you press reset: void setup() […]

Continue reading →

arduinoblink

My very first steps with Arduino. My choice was MEGA 2560 with proto shield, couple of bread boards, accelerometer ADXL345. First steps… blinking LED’s… image developed using Fritzing.  

Continue reading →