22nd
JAN

DS1307 & TM1637 with Arduino

Posted by M. 4Gani under Electronic, Ring Clock Projecti:

Making a Digital clock with Arduino boards.  (ماژول ساعت DS1307)

DS1307 & TM1637 with Arduino

DS1307 & TM1637 with Arduino

Components
• Arduino board
• DS1307 RTC Module  I2C (SDA and SCL)
• TM1637 7-segment I2C (CLK and DIO)

The DS1307 uses I2C Protocol to communicate with arduino.

There are a lot of examples on the Web to show how to use Wire library.

The Wire library  makes DS1307 RTC easier  to use for getting/setting the time.

Driver IC: DS1307 real clock
SCL:  Analog 5  (clock line)
SDA:  Analog 4  (data line)
Voltage: +3.3V to +5V
GND:  GND of Arduino

Typically you want to use 2.2K or 2.4K resistors between each of the SDA and SCL pins and  +3.3v of arduino.

For my module, I do NOT need pull-up resistors.
The TM1637 also uses I2C Protocol to communicate with arduino.

Driver IC: TM1637 display 7-Segment
Voltage: +3.3V to +5V
Interface: I2C
CLK: Digital 9
DIO: Digital 8
GND:  GND of Arduino
8 adjustable luminance levels

The CLK and DIO on display can connect to any of arduino digital pins. I use for DIO pin the D8 and for CLK pin the D9 Pins.

Arduino libraries:
// DS1307 & TM1637 7-segment with Arduino
#include 
#include "TM1637.h"
// pins definitions for TM1637 and can be changed to other ports       
#define CLK 2
#define DIO 3
TM1637 tm1637(CLK,DIO);
// Holds current clock time
RTC_DS1307 RTC; 
DateTime theTime; 
int8_t TimeDisp[] = {0xff, 0xff, 0xff, 0xff};

void setup() {
  Serial.begin(9600);
  if (!RTC.begin()) {
    Serial.println("Couldn't find RTC");
    while(1);
  }
  if (!RTC.isrunning()) {
    Serial.println("RTC is NOT running!");
    RTC.adjust(DateTime(F(__DATE__), F(__TIME__)));
  }
  tm1637.init();
  tm1637.set(2);         // TYPICAL = 2, DARKEST = 0, BRIGHTEST = 7;
  tm1637.display(0,10);  // show A B C D for testing
  tm1637.display(1,11);   
  tm1637.display(2,12); 
  tm1637.display(3,13);
  delay(3000);
}

int hour, minute, second;
unsigned char ClockPoint = 1;
 
void loop() {
  DateTime theTime = RTC.now();
  second = theTime.second();  // get seconds
  minute = theTime.minute();  // get minutes

  TimeDisp[0] = minute / 10;
  TimeDisp[1] = minute % 10;
  TimeDisp[2] = second / 10;
  TimeDisp[3] = second % 10;
  
  tm1637.display(0,TimeDisp[0]);
  tm1637.display(1,TimeDisp[1]); 
  tm1637.display(2,TimeDisp[2]);
  tm1637.display(3,TimeDisp[3]);
  Serial.print("Set to ");
  Serial.print(hour);
  Serial.print(":");
  Serial.print(minute);
  Serial.print(":");
  Serial.print(second);
  Serial.println();
  ClockPoint = (~ClockPoint) & 0x01;
  if(ClockPoint)tm1637.point(POINT_ON);
  else tm1637.point(POINT_OFF); 
  delay(1000);  
}

Continue….

7th
AUG

Make a Bluetooth speaker

Posted by M. 4Gani under Electronici:

I’m using BK8000L Bluetooth module (SBC audio decoding performance) and as amplifier the PAM8403  board. (but you can use any other amplifier for example from you old PC speaker)

Problem with feedback and noise

If  we want to power the both devices from the same power supply, It will get a lot of noise. (ground loop noise)
To eliminate sound noise we should using separate power supply to drive the Bluetooth and amplifier.

Main component are:
– Bluetooth Stereo Audio Module Transmission BK8000L
PAM8610 2x15W Amplifier Board Digital
– Power supply ca 7 to 9V for PAM8610 and 3.3v for Bluetooth
– Two speakers

For 3.3V power for BK8000L I used a simple USB/AC Adapter charger and with a AMS1117 Voltage regulator convert the 5 volt output to 3.3 volt.
Keep in mind to added 100 uF and .1 uF capacitor between VCC and GND.

Recommend is to use a 100uF/25V electrolytic capacitors between VCC and GND.

22nd
JUL

Notebook power supply modification

Posted by M. 4Gani under Electronici:

 

Modification of IBM notebook power supply

How can I modify the output of power supply from 16.8 to 12 volt?

Most of the switched mode supplies are normally provide with a reference voltage to regulate the output, which is the heart of the device.

Identify the voltage divider:

First I opened the case and looked for the feedback circuit and voltage divider.

Then, I tried to locate the two resistors that are responsible for setting  the output voltage.

The stabilization of the output voltage can be archived in the same way as TL431 (TL431  will be used in chip switching mode supplies and you can find many documents about its functionality in internet).

Vo=Vref*(1+R1/R2)

I already knew, that the location these two resistors can be found near the opt-coupler.

Only R1 is interesting for me. I can simply add an additional resistor in parallel to it and reduce the total value.

The resistor Rx51 on board as you see in the picture can be a good candidate. I measure the value and it was 976 ohm .
Measure the voltage at the opt-coupler was about 1.9V

 

On the left side of the board I found a tiny circuit board, which is shown in the picture. I assume its functionality is the same as TL431.

Additionally, on the tiny broad I found the resistor R62 with 1.9 K in series to RX51.

I soldered parallel to R62 (1.9K) a new 6.8K resistor.
The result was 1.4K and gave me an output of 11.8 Volt and max 3.4 Amper

10th
JAN

jPortal wordpress theme

Posted by M. 4Gani under WordPressi:

A Plain & Simple Free WordPress Theme

jPortal WordPress Theme has the special features for usage with the wpCarrers plugin.

It’s a clean and simple  one / three-column (left and right side bar) with customizable header image.

Note: The page’s content will be displayed in a one-column.

Fixed-width,  one columns and two dynamic sidebars, widget ready theme and with very well structured CSS file.

jPortal WordPress Theme

Download | Demo

7th
JAN

WordPress Careers plugin

Posted by M. 4Gani under Tools, WordPressi:

wpCareers (JobPortal Project) is a WordPress plugin

The plugin allows you to build an online jobs/resume website, where the applicants will be able to search, update, add/remove, and add or edit their resumes/profiles.

In addition, user can also add/delete/change descriptions, upload images/photos.

* In Admin Area the administrator will be able to:
* View and manage records in terms of add/modify/remove of entries
* Approve or deny the posts.
* Inactive Applicants Convert to Active
* Delete Users profile, Delete Employer profiles

It is a complete ready to use as Job Board System

IMPORTANT NOTE:

We strongly recommend  you using themes that the front page will be displayed in one column otherwise you use our theme wpcareers.

jPortal WordPress Theme

jPortal Theme

Some themes, which are already modified to use for wpcareer plugin, placed below for downloading:

Sandy-Kornikova

Accordion Lite Red City

 

NOTE:
Some themes, which are arleady modifie by me to use in wpcareer plugin, are available HERE!

This plugin is under active development. If you experience problems, please first make sure you have installed the latest version. Feature requests, bug reports and comments can be submitted [here]

1) Click here to download the wpCareers last release

Installing the plugin

Please test the plugin with your theme on a develop machine or a local machine, if the test is successful then install it on the production machine.

1. Extract files
2. Upload ‘wpcareers/’ folder to your ‘./wp-content/plugins/’ directory
3. Login to the administration and go to “admin panel/plugins” and activate the plugin
4. Go to the “Manage” tab of your WP.

You have now there a new tab called “wpcareers” to configure the plugin.
You will need to make the following folders writeable (chmod 777) :

– wp-content/plugins/wpcareers/templates_c
– wp-content/plugins/wpcareers/cache

NEW in THE VERSION 1.1
Add a public directory and upload the resume and images resources (the public folder must have write permission)

– wp-content/public/wpcareers/resume
– wp-content/public/wpcareers/public

Screenshots

screenshot-1.png
screenshot-2.png

Demo link:

wpCareers

Questions and Examples of Use

Frequently Asked Questions

Todo:

Changelog:

Jan 18, 2010 – Released v1.1
– fixed for plugin auto-upgrade

 

 

See more website here...

  • ganada
  • Farsi-News
  • Advertise Here
  • forgani.de