Search This Blog

Powered by Blogger.

Translate

[TC] Secure Digital Access System using iButton


Access control forms a vital link in a security chain. Here we describe a secure digital access system using iButton that allows only authorised persons to access a restricted area.


The iButton is used here as a key to the access control system. Its unique identification (ID) number is used for authorisation. On detection of an authorised iButton, the system allows access. Thereafter, an automated lock key locks the system again. The system is permanently halted after five repeated false attempts. A service control unit built around an AVR microcontroller is interfaced to the iButton with 1-wire protocol for authentication of user validation of data.


iButton DS1990A
Here we have used the iButton DS1990A from Dallas Semiconductor (MAXIM). Its block diagram is shown in Fig.1.



Fig.1: Block diagram of iButton
An iButton is a chip housed in a stainless-steel enclosure (refer Fig.2). The electrical interface is reduced to the absolute minimum, i.e., a single data line plus a ground reference. The energy needed for operation is taken from the data line. The DS1990A serial number iButton is a rugged data carrier that acts as an electronic registration number for automatic identification. It contains a unique ROM code that is 64-bit long as shown in Fig.3. The first eight bits are a 1-wire family code. The next 48 bits are a unique serial number. The last eight bits are a cyclic redundancy check (CRC) of the first 56 bits.



Fig.2: A typical iButton chip

Data is transferred serially via the 1-wire protocol, which requires only a single data lead and a
ground return. The iButton DS1990A provides the additional 1-wire protocol capability that allows the search ROM command to be interpreted by the DS1990A.



Fig.3: 64-bit lasered Rom


Circuit description

Fig.4 shows the circuit of the secure digital access system using iButton. The circuit is built around an ATmega16 microcontroller.


Fig.4: Circuit of the secure digital access system using iButton


The ATmega16 is an 8-bit microcontroller based on the AVR enhanced RISC architecture that executes powerful instructions in a single clock cycle. It has 16kB in-system programmable flash program memory with read while- write capabilities, 512 bytes of EEPROM, 1kB SRAM, 32 general purpose input/output (I/O) lines, 32 general-purpose working registers,three flexible timers/counters with compare modes, internal and external interrupts, a serial programmable. USART, a byte-oriented two-wire serial interface, a programmable watchdog timer with internal oscillator, an SPI serial port and six software-selectable power-saving modes.

Piezobuzzer PZ1 is used as an audible indicator for true, fake, random touches and system halt. It is controlled from port pin PD6 of the microcontroller with the help of transistor T1. The iButton socket is connected to port pin PD2. Pull-up resistor R1 is used as required from the 1-wire protocol. Port pin PD4 controls the relay operation through optocoupler PC817 (IC2). The door locking mechanism, say, for a slide door, is connected to the contacts of relay RL1, which closes after some time automatically.

Whenever someone attempts to gain access by touching the iButton (IC5) using his own iButton, the firmware inside the AVR reads its unique ID and matches with the ID in the firmware. If the ID matches, port pin PD4 goes high, the internal LED of the optocoupler (IC2) glows and relay RL1 energises for the predefined time. Simultaneously, the buzzer sounds to indicate grant of access.

Thereafter, relay RL1 de-energises. The buzzer gets the PWM signal to produce sound from port pin PD6 of the microcontroller. The 1-wire communication is done through interrupt port pin PD2 (INT0), so the AVR does not have to poll the pin but respond when any change in signal is detected on the interrupt pin. Switch S1 is used for manual reset.

Port pin PD1 of the microcontroller is used to interface with the hyper terminal of the PC through RS-N 232 interface MAX232 IC (IC3) for iButton verification and checking. The microcontroller  provides a transmit channel for serial data transfer. Transmit data pin (TXD) is specified at port pin PD1. The microcontroller is connected to T1 IN (pin 11) of MAX232. T1 OUT (pin 14) of IC3 is connected to pin 2 of the Comport connector. The signals provided on these pins are TTL-level and must be boosted and inverted through a MAX232 converter to comply with the RS-232 standard.


The MAX232 has two internal charge pumps that convert +5V into ±10V (unloaded) for RS-232 driver operation. The first converter uses capacitor C6 to double the +5V input to +10VM on capacitor C8 at pin 2. The second converter uses capacitor C5 to invert +10V to -10V on capacitor C4 at pin 6.

The power supply for this circuit is derived from 230V, 50Hz AC mains. Transformer X1 steps down 230V, 50Hz AC mains to deliver a secondary output of 9V, 300 mA. The transformer output is rectified by a full-wave rectifier comprising diodes D1 through D4, filtered by capacitor C1 and regulated by IC 7806 (IC4). Capacitor C2 bypasses the ripples present in the regulated supply. LED1 acts as the power indicator and R5 limits the current through LED1.
Construction and testing
An actual-size, single-side PCB for the secure digital access system is shown in Fig. 5(View as PDF) and its component layout in Fig. 6(View as PDF). Assemble the circuit on a PCB as it minimises time and assembly  errors. Carefully assemble the components and double-check for any overlooked error. Connect the assembled circuit to the COM port of the computer. The iButton access code and message is transferred is to the PC through the COM port using the Hyper Terminal program.





Software
The software for this project is given at the end of this article. It is written in ‘Basic’ language and compiled using Bascom-AVR compiler. The source program is well commented and easy to understand.

Burn the finally obtained Intel hex code file into the AVR’s flash memory using a suitable programmer. The microcontroller uses an 8MHz internally generated clock. To activate, program fuse bytes as follows:


Fuse low byte = D4
Fuse high byte = 99

The source program is developed quickly with the help of the BASCOMAVR library function. The 1wrest, 1wread and 1wwrite functions are used for checking the presence of 1-wire device, reading of the unique ID of iButton and writing to the 1-wire device, respectively. Sound function is used for generating the beep sound from the buzzer. The iButton is connected to hardware interrupt pin INT0 so that any change on the pin can be detected and further processing for 1-wire done.
The program execution starts by initialising the input/output ports, the interrupt pin and its level of detection. Global interrupts are enabled and the interrupt service routine is ready to be executed when any interrupt is received. As soon as the normal program execution is interrupted, an interrupt is issued and the control of execution enters the interrupt service routine, where iButton is given reset command first and then the ROM command to fetch the unique ID of the iButton. This fetched ID is compared with the unique ID programmed in the firmware. If there is a mismatch between the two IDs, a fake parameter counter is incremented and the relay connected to port PD4 de-energises. If the two IDs match, the relay connected to port PD4 energises and simultaneously the buzzer connected to port PD6 sounds. If the unique ID is wrong sequentially five times, the system enters the major warning state where the buzzer sounds continuously and it can only be stopped by resetting the system


Author:Chirutkar Harshadkumar Govindrao And Dr. H.N. PandyaSource:http://www.electronicsforu.com/
 

[TC] Multiutility flash light















Multiutility flash light  



This multiutility flash light consists of three sections: a flasher, a sound-to-light display and a white LED-based flashlight.

The flasher circuit (Fig. 1) is built around an NE555 timer IC that is wired as an astable multivibrator. It flashes a pair of LEDs alternatively. The frequency of the astable multivibrator can be varied using preset VR1.



Fig. 1: Flasher circuit  
The working of the sound-to-light display (Fig. 2) is simple. The condenser microphone (MIC) picks up the sound in its vicinity and outputs a low voltage. The low output of the microphone is boosted by the first section (A1) of dual op-amp LM358. The output of op-amp A1 is fed to the second section (A2) of LM358 to drive transistor T1 (2N2222). The three RGB LEDs flash accordingly. (An RGB LED is actually a two-pin white LED package that glows red, green and blue sequentially when powered.) 




Fig. 2: Sound-to-light display circuit 


The flashing light circuit (Fig. 3) consists of a group of four white LEDs connected in series. Resistor R13 limits the current flowing through the white LEDs (LED8 through LED11).


Fig. 3: Flash light circuit


Assemble the entire circuit including the flasher, sound-to-light display and flashlight on a general-purpose PCB and enclose in a cabinet. Connect the flasher LEDs (LED1 through LED4) on top of the box and the condenser microphone and flashlight white LEDs (LED8-LED11) in the middle of top as shown in Fig. 4. Connect the three switches to select any one function or the combination of two or three sections.  



Fig. 4: Proposed arrangement for multiutility flash light

Source:http://electronicsforu.com/

[TC] Arduino Based Sunrise Alarm Clock

So We Want To Make Sunrise Alarm Clock Based On Arduino Board

Part List:
  1. Arduino
  2. Real Time Clock Module (http://www.sparkfun.com/products/99)
  3. 24xAssorted LEDs (In my case: 3UV, 2 Blue, 4 Red, 3 Yellow, 12 White)
  4. 24xResistors, 220ohm
  5. Solderless Breadboard
  6. Assorted wires
  7. 3x74HC595 shift registers
  8. A Shadow Display Box
  9. Frosting Spray
To put this thing together I used Elco's ShiftPWM Library to control the 24 LEDs. You could go bigger, but I wanted this to all fit into the box.
Personally, I had some PCBs from a previous project that I could fashion to make the LEDs easier to mount.
Everything is hooked up like in the schematic:

The "To SCL" and "To SDA" lines go to the Real Time Clock Module.
The parts are all mounted to the backing board of the shadow display box like so:

Load the program below in and you can set the time on the clock with the following command in serial monitor:
T(00-59)(00-59)(00-23)(1-7)(01-31)(01-12)(00-99)
T(sec)(min)(hour)(dayOfWeek)(dayOfMonth)(month)(year)
You can then set the alarm with a command:
A(00-59)(00-23)(0-1)(0-1)(0-1)(0-1)(0-1)(0-1)(0-1)
A(min)(hour)(sun)(mon)(tue)(wed)(the)(fri)(sat)
The alarm will attempt to be done with the cycle at the appropriate time set, so it will start with the UV LEDs and move through the progression fading the LEDs in and out as indicated in the arrays at the top of the program.

Arduino Code:

[TC] World’s smallest Bluetooth location ‘stickers’

World’s smallest Bluetooth location ‘stickers’ using Nordic Semiconductor SoCs



Nordic Semiconductor announced earlier that its SoC series nRF51822 has been specified into the world’s smallest Bluetooth low energy coin-sized location stickers, ‘StickNFind’ by Stick-N-Find Technologies. Using a free smartphone app, users can locate their stickers using a ‘radar screen’, set distance alerts called ‘virtual leash’, and do much more.
A system on a chip or system on chip is an integrated circuit that integrates all components of a computer or other electronic system into a single chip. It may contain digital, analog, mixed-signal, and often radio-frequency functions all of which would exist on a single chip substrate. A system-on-chip blurs the lines between chip design and system design.
World’s smallest Bluetooth location ‘stickers’
Ultra low power (ULP) RF specialist Nordic Semiconductor ASA announced earlier that its SoC series nRF51822 has been specified into the world’s smallest Bluetooth low energy coin-sized location stickers, ‘StickNFind’ by Stick-N-Find Technologies. StickNFinds are the size of a U.S. quarter at just 0.98-inch (24mm) in diameter and 0.16-inch (4mm) thick. Users can easily track up to twenty location stickers on a smartphone app. They can be used to track keys, remote controls, pets, and even people. Using a free smartphone app, users can locate their stickers using a ‘radar screen’, set distance alerts called ‘virtual leash’, and do much more.




StickNFind is offering developers a free software development kit (SDK) and technical support with its stickers already being developed for use in a wide range of applications including automated inventory tracking and monitoring within shops, stores, and shipping crates, plus security tracking of high value items such as precious stones and expensive tools or equipment.
The Nordic Semiconductor nRF51822
The Nordic Semiconductor nRF51822 is a multi-protocol Bluetooth low energy / 2.4GHz proprietary RF Flash-based SoC that is designed specifically to be used as a single-chip solution for a range of Bluetooth low energy and 2.4GHz proprietary designs in cost, power, and size constrained applications including PC peripherals, connected TV remote controls, sports/fitness/healthcare sensors, toys, and automation.
Key features of the IC include:
It has a 256 kB on-chip Flash and 16 kB RAM with a wide range of digital and mixed signal peripherals including SPI, 2-wire, ADC, and a quadrature decoder. The IC comes with 16 PPI channels, an on-chip LDO and an On-chip drop down DC/DC converter for 3V batteries such as coin cells. A +/- 250 ppm 32kHZ RC oscillator enables the implementation of Bluetooth low energy applications without an external 32kHz crystal thus saving cost and board space along with a 6x6mm 48-pin QFN package with up to 32 GPIOs.
The S110 Bluetooth low energy stack
The S110 Bluetooth low energy stack for the nRF51822 is provided as a downloadable, royalty-free, pre-compiled binary that can be programmed and updated separately.
The Key features of the stack include:
It has an asynchronous and event driven SVC-based API with run-time protection, GATT, GAP and L2CAP level APIs, peripheral and broadcaster roles and GATT client and server. It operates with a non-concurrent multi-protocol operation with a 2.4 GHz RF proprietary protocols while requiring less than 128 kB code space and 6 kB of RAM, leaving more that 128 kB flash and 10 kB RAM for application code. When compared to two-chip implementations using Nordic’s previous generation nRF8001 the nRF51822, running the S110 stack slashes power consumption by up to 50 per cent.
The S110 stack and the nRF51822 are complemented by the nRF518 SDK that includes a comprehensive set of Bluetooth low energy profiles, services, and example applications. For proprietary applications, the nRF51822 is complemented by a new and improved Gazell 2.4GHz RF protocol stack providing interoperability with nRF24L Series Gazell-based applications. The combination of the nRF51822 and the new Gazell protocol stack slashes power consumption by up to 30 per cent compared to Nordic’s previous generation nRF24LE1

MultiPurpose Robot For Shopping Mall

I Have My BE Final Year Project In Electronics and Telecommunications Engineering Named "MultiPurpose Robot For Shopping Mall" Which Includes "Camera For Video Surveillance + Fire FIghting + Robotic Arm For Pick And Place Purpose + Floor Cleaning" 

I Have Included Blackbook Copy....













Copyrights : Todayscircuits.blogspot.com If You Are Sharing Please Do Not Forget To Include 
[Today's Circuits]

[TC] 20 Arduino projects of 2012

While looking for ideas for new some new project I noticed there aren’t many lists of Arduino projects online so I decided to make one and in the last few days I’ve been carefully digging Reddit (r/Arduino) and the Arduino forum until I ended up with a list of 20 Arduino projects.
All the projects in this list follow two simple criteria:
  1. They’ve been published/released in 2012.
  2. They provide quite detailed info (the more the better).
The second criteria forced me to discard some amazing projects, but I didn’t want this post to be a simple showcase of cool Arduino projects, I wanted it to be an useful reference for Arduino users.

20. arduino-l3dgecomm

arduino-l3dgecomm
This project aims to integrate a 3D world with real sensors and motors, more a proof of concept than a proper project, but still an interesting idea. Project page.

19. Charlieplexed ATTiny LED Christmas Ornament

Charlieplexed ATTiny LED Christmas Ornament
A custom PCB designed in the shape of a Christmas tree, an Atmel ATTiny45 microcontroller, 5 IO pins, and 20 LEDs make a perfect Christmas ornament. Project page.

18. Sound Alarm

Sound Alarm
A simple idea, but it comes with quite few interesting features. The device built in this project is a sound level detector which sets off an “alarm” via IR when it detects the sound level is to high for too long. Project page.

17. Sleepy Timer

Sleepy Timer
SleepyTimer is an Arduino-based sleep monitor which uses a 3-axis IMU to infer nightly sleep patterns. It graphs the results on an LCD and on a thermal-transfer printer. Project page.

16. Polar Plotter

Polar PlotterA polar plotter is a plotter with a rotating, extendable arm. The construction is powered by an Arduino Uno and Maker Beams. Project page.

15. Lite Brite LED clock

Lite Brite LED clock
An instructable that shows you how to make a Lite Brite clock using a Lite Brite, an Arduino, 46 LED’s and a few other miscellaneous parts. Project page.

14. Game Controller

Arduino game controllerA game controller powered by a Teensy microcontroller. No project page, but a photo gallery and the source code are available.

13. MP3 Player

Arduino MP3 Player
Mix an Arduino Mega, an MP3 decoder, an SD card, and a nokia LCD with thousand lines of code and you’ll get a working MP3 player. Project overview.

12. Recognizing token image with camera

Recognizing Token Image With Camera
Devices built using LEGO always have something special… this one uses an Arduino Nano and an old webcam to recognize digits from a security code. Project page.

11. Reddit message indicator

Reddit message indicator
This project could be useful to all the Reddit users, it’s a small desk notifier that lights up when your Reddit account receives a message. Project page.

10. PIP-Boy

Fallout PIP-Boy
A PIP-Boy is a device used by the protagonist in the popular Fallout series of video games for navigation, radiation detection, data storage/playback, and inventory management. This instructable explains how to make one. Project page.

9. WiiChuck steered laser pointer

winchuck_laser_pointerThis project uses a Wii Nunchuck to control a laser pointer moved by 2 mini servos. Project page.

8. RCArduino Yaw Control

RCArduino Yaw Control
The aim of this project is to make race RC cars more stable and easy to drive especially for beginner drivers. Project pages 1 and 2.

7. Disco Planet

Disco Planet
 A huge disco ball made of 800 LEDs. Project Page.

6. Hacking hotel room locks

Hacking hotel room locks
Last summer a black hat called Cody Brocious (aka Daeken) managed to gain access to 4 million hotel rooms with Arduino board. Probably not an usual project, but it definitely deserved a place in this list! Paper and PDF slides available online.

5. Hidden light control

Hidden light control
Controlling a LED strip with an action figure of Ezio Auditore (Assassin Creed) is pretty cool, isn’t it? Project page.

4. ExpeditInvaders

ExpeditInvaders — the spiced up IKEA shelf
A simple bookshelf can be strongly enhanced by some LED modules controlled by an Arduino board. Project page.

3. Pumpktris

Pumpktris
The perfect project for Halloween: combining a pumpkin with the classic video game Tetris!Project page.

2. The Inebriator

inebriatorAn Arduino powered cocktail machine, with plenty of cocktails to choose from. Project website.

1. Pinokio

Pinokio
Pinokio is not just a lamp, it’s a beautiful animatronic powered by Arduino, Processing and OpenCV, which is aware of the environment around and expresses different behaviours in an incredibly natural way. Project log and in-action video.

Bonus project of 2012: Arduino cake

OLYMPUS DIGITAL CAMERAA lucky guy got this from his mum on his 18th birthday, unfortunately no schematic or sketch code are available, but you can check his forum post and maybe ask him for the recipe. :)
And that’s all for this list of 20 Arduino projects of 2012!
What’s your favourite one? Can you suggest any other awesome project? Just leave a comment below

How to build Digital Electronic Lock

Circuit

Digital Electronic Lock

Description

The digital lock shown below uses 4 common logic ICs to allow controlling a relay by entering a 4 digit number on a keypad. The first 4 outputs from the CD4017 decade counter (pins 3,2,4,7) are gated together with 4 digits from a keypad so that as the keys are depressed in the correct order, the counter will advance. As each correct key is pressed, a low level appears at the output of the dual NAND gate producing a high level at the output of the 8 input NAND at pin 13. The momentary high level from pin 13 activates a one shot circuit which applies an approximate 80 millisecond positive going pulse to the clock line (pin 14) of the decade counter which advances it one count on the rising edge. A second monostable, one shot circuit is used to generate an approximate 40 millisecond positive going pulse which is applied to the common point of the keypad so that the appropriate NAND gate will see two logic high levels when the correct key is pressed (one from the counter and the other from the key). The inverted clock pulse (negative going) at pin 12 of the 74C14 and the positive going keypad pulse at pin 6 are gated together using two diodes as an AND gate (shown in lower right corner). The output at the junction of the diodes will be positive in the event a wrong key is pressed and will reset the counter. When a correct key is pressed, outputs will be present from both monostable circuits (clock and keypad) causing the reset line to remain low and allowing the counter to advance. However, since the keypad pulse begins slightly before the clock, a 0.1uF capacitor is connected to the reset line to delay the reset until the inverted clock arrives. The values are not critical and various other timing schemes could be used but the clock signal should be slightly longer than the keypad pulse so that the clock signal can mask out the keypad and avoid resetting the counter in the event the clock pulse ends before the keypad pulse. The fifth output of the counter is on pin 10, so that after four correct key entries have been made, pin 10 will move to a high level and can be used to activate a relay, illuminate an LED, ect. At this point, the lock can be reset simply by pressing any key. The circuit can be extended with additional gates (one more CD4011) to accept up to a 8 digit code. The 4017 counting order is 3 2 4 7 10 1 5 6 9 11 so that the first 8 outputs are connected to the NAND gates and pin 9 would be used to drive the relay or light. The 4 additional NAND gate outputs would connect to the 4 remaining inputs of the CD4068 (pins 9,10,11,12). The circuit will operate from 3 to 12 volts on 4000 series CMOS but only 6 volts or less if 74HC parts are used. The circuit draws very little current (about 165 microamps) so it could be powered for several months on 4 AA batteries assuming only intermittent use of the relay.




Page Rank

google pagerank

Write For Us

Submit a Guest Post

Find us on Facebook

Categories

555 Timer IC 7 segment Display 8051 Project AC Circuits Adafruit Alarms Amplifier Circuits Analog Circuits android Arduino arm processor Assembly Languange Atmel Atom Size Audio Circuits augmented reality Automotive Circuits avr Battery Circuits Bicycle Gurad bluetooth Cable TV Circuits Cambridge University Camera Technology Circuit Boards Clipping And Clamping Circuits Clocking And Timer Circuits Computing contact lens Contact Us Form Contests Controller Circuit Conversion Circuits Counter Circuits Digital Electronics diy circuits Downloads EFY EFYTimes Electronic Books Electronic Components Electronic Locks And Keys Engineering Fan Circuits Filter Circuits Fire Alarm free Frequency Fun And Game Circuits future Google Hack n Mod Ham Radio Circuits heart rate monitoring High Voltage Circuits Home Circuits IC Guide ieee Industrial Circuits Infrared Instructables Inventions ipad lcd Led Circuits Light Related Lighting Circuits Medical Circuits Meter Clocks Microcontrollers Microprocessors Mini Projects modules Movie maker NatGeo Navigation Notice Optical Fiber PC Circuits PCB Boards Physics pnp transistor Power Supplies Printing Projects Programmer Project Ideas Projectors Protection circuits Proximity Detectors Radar Radio Circuits Radio Transmitters Raspberry Raspberry Pie Remote Circuits Retis Lab RFID Robot Cars Robotics Science Science Alert Security And Safety Sensor Circuits Servo Motors Smallest Smartwatches sms Software solar cell sound application Spectram Switch Technology News Telephone Related Television Related Test And Measurement Circuits Thermal Projects Tone generator circuits Touch Screen Tutorials Wearables Wi-Fi Wireless
Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS