100 LED 10 band Audio Spectrum atmega32 MSGEQ7 with peak hold and fall down

 

 MSGEQ7 and atmega32  based  Audio Spectrum.
10 level height and 10 band width.
peak hold and fall down display style

Step 1: Components list

      components list
————————————-
1, atmega32 – 1
2, MSGEQ7 Audio spectrum ic -1
3, veroboard – 1
4, RED  Bar graph  LED  -10
5, 20 pin ic base –   10
6, BC557 -10
7,Resistors – 330Ω  -10
–  8.2KΩ  -1
–  200kΩ  -1
– 22k Ω    -2
– 10k Ω    -1
8, ULN2803     ic    – 2
9, 7805   5V regulator ic -1
10, crystal – 16Mhz -1
11,Capacitors-   22pf-3,  0.01uF -1, 0.1uF  – 2
12, single-strand wire Continue reading 100 LED 10 band Audio Spectrum atmega32 MSGEQ7 with peak hold and fall down

How to use MQ2 Gas Sensor – Arduino Tutorial

The MQ series of gas sensors use a small heater inside with an electro-chemical sensor. They are sensitive for a range of gasses and are used indoors at room temperature. The output is an analog signal and can be read with an analog input of the Arduino.

The MQ-2 Gas Sensor module is useful for gas leakage detecting in home and industry. It can detect LPG, i-butane, propane, methane ,alcohol, hydrogen and smoke.

Some modules have a built-in variable resistor to adjust the sensitivity of the sensor. Continue reading How to use MQ2 Gas Sensor – Arduino Tutorial

Convert an ATX Power Supply Into a Regular DC Power Supply

A DC power supply can be hard to find and expensive. With features that are more or less hit or miss for what you need.

In this Instructable, I will show you how to convert a computer power supply into a regular DC power supply with 12, 5 and 3.3 volt outputs. For about $10!

Why use a computer (ATX) power supply? Well, they’re available everywhere, and they can output tremendous amounts of power in a small form factor. They have overload protection built right in, and even a 500W model can be reasonably priced with high efficiency. The voltage rails are incredibly stable. Giving nice, clean DC current even at high loads.

Plus, it’s likely that many of you simply have an extra one lying around doing nothing. Might as well get the most value for your investment. Continue reading Convert an ATX Power Supply Into a Regular DC Power Supply

Install Team Viewer on Ubuntu

I have been using Ubuntu for a long time, I run it along side with windows. I have a tutorial on how to dual boot windows and any other operating system, you can also read that. One of the softwares I use often is team viewer, but unlike windows it is not as simple to install team viewer for windows.

And I have been getting multiple requests on how to install it, so I taught I would set up an instructable on how to do that.

So lets get started….

Step 1: Getting Started

This instructable shows how to install team viewer on Ubuntu 14.04 and I will keep updating this as time goes by. I’m showing you how to install the original build and I would recommend you not to use any out-of-date repos.

Also, I will be show how to install the 32 bit version.

Step 2: Download

Team viewer can be downloaded from the team viewer official site.

Download the 32bit version.

Note the location of the downloaded file

Step 3: Installing

Open up a terminal

Run command

cd ~/file path/

Run command

sudo dpkg -i teamviewer_linux.deb

Run command

sudo apt-get -f install

to install any missing dependencies

Raspberry remote control with Telegram

Telegram is a very versatile instant messaging software that can be used with the same phone number on different devices simultaneously.
In this tutorial we saw how to install it, and we tried to send text and media messages.
We have also seen that it is possible to set the Raspberry to send messages automatically.
In this tutorial we will ask Raspberry to take a specific action as a function of the received message, for example, we could send a text message with the word “photo” and Raspberry will sends us a photo of the apartment, or “lamp” to turn a lamp, or “open” to open the garage door.
Well, let’s start

You need:

a Raspberry Pi B or B+, with the latest version of Raspbian, or our MIcroSD Card 8GB Class 10 Raspbian preinstalled.

Step 1: Installation

Installation:

Read this tutorial, we use this configuration as start point.

To intercept a new incoming message we create a file action.lua

“Lua is a powerful, fast, lightweight, embeddable scripting language.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.” From https://www.lua.org.

sudo nano /home/pi/tg/action.lua

with this content

function on_msg_receive (msg)
      if msg.out then
          return
      end
      if (msg.text=='ping') then
         send_msg (msg.from.print_name, 'pong', ok_cb, false)
      end
  end
   
  function on_our_id (id)
  end
   
  function on_secret_chat_created (peer)
  end
   
  function on_user_update (user)
  end
   
  function on_chat_update (user)
  end
   
  function on_get_difference_end ()
  end
   
  function on_binlog_replay_end ()
  end

Save and exit, when incoming text message is “ping”, Telegram answers us with a text message containing “pong”.

move in tg

cd /home/pi/tg

then type

bin/telegram-cli -k tg-server.pub -W -s action.lua

Try to send a message, if all goes well, Telegram answers only on “ping” and not “PING”, we should see something like this

Raspberry Telegram onreceive

 

Raspberry Telegram onreceive

Ok, let’s do something more interesting.

Install the Raspberry Camera, see this tutorial, then create a new folder where we will save the captured photos.

sudo mkdir /home/pi/camera

create a new file camera.sh

sudo nano /home/pi/camera/camera.sh

with this content

#!/bin/bash  
   
  raspistill -w 800 -h 600 -o /home/pi/camera/photo.jpg

save and exit, give it execution permissions

sudo chmod -R 0655 /home/pi/camera/camera.sh

Edit action.lua

sudo nano /home/pi/tg/action.lua

add this lines in function on_msg_receive

if (msg.text=='photo') then
     os.execute('/home/pi/camera/camera.sh')
     send_photo (msg.from.print_name, '/home/pi/camera/photo.jpg', ok_cb, false)
  end

Raspberry Telegram action.lua

Step 2: Test

Test it

bin/telegram-cli -k tg-server.pub -W -s action.lua

Now if you send a text message with “photo”, Raspberry answer with a photo

Raspberry telegram send photo

Raspberry photo with Telegram

To enter additional commands simply change the file action.lua inserting a new if block , for example, we could activate a relay or ask the status of a sensor.

In the next tutorials will achieve some other example of use.

Follow us on social to stay informed.

www.emmeshop.eu

Stepper Motor dan Arduino

Stepper motors fall somewhere in between a regular DC motor and a servo motor. They have the advantage that they can be positioned accurately, moved forward or backwards one ‘step’ at a time, but they can also rotate continuously.

In this lesson you will learn how to control a stepper motor using your Arduino and the same L293D motor control chip that you used with the DC motor in lesson 15.