Sunday 26 June 2016

Daytime Running Lights Controller

The circuit presented here is to activate DRLs on any lighting that uses LED and/or incandescent bulb in a vehicle. Before attempting to construct this circuit, remember that, you cannot directly hook up the circuit to any circuit that is controlled by the CANbus system in a vehicle.


The fog-light circuit is not controlled by CANbus, then you can connect the DRL circuit to it. Author’s prototype is shown in Fig.

Circuit and working

The circuit diagram of the DRL controller. It is built around timer NE555, MOSFET 60NF06 , 12V, 1C/O relay, DRLs and a few other components.

There are seven wires that come out of the circuit. The first connection (DRL-B and DRL-G) you will make is to the DRLs. These are the main wires that will make the bumper DRLs turn on when you start the vehicle.


Connect DRL-B and DRL-G wires from the circuit directly to the DRLs at the bumper. The circuit activates when it senses ignition voltage. It does so by getting a signal from the main wire (IGN+) and the positive supply wire that runs from the circuit to the ignition-switched +12V power line. GND is main ground connection, and it must be connected directly to the negative battery terminal or the body of the vehicle.

The wire, if it does not reach the battery, by running sufficient length of the automotive wire from the circuit to the negative terminal of the battery. If you want the DRLs to switch off when you turn your headlights and/or parking lights on, connect HL+ and PL+ to the existing headlight and parking-light wires.

Circuit Diagram


Wire connection PB+ is optional; you do not have to connect it unless you want the DRLs to work with the parking brake . The potmeter (VR1) can be used to adjust the brightness of DRLs as per requirement. Note that, you can modify the circuit’s default Set Off mode as per your choice, or according to the relevant law of the land.

The circuit is a simple pulse-width modulator  built around the ubiquitous 555 timer. User-controllable PWM output from IC1 is used to switch on the DRLs through MOSFET 60NF06.

Note. The MOSFET from a noisy line calls for a small series gate resistor close to the MOSFET. Using a low-value 100-ohm resistor between the MOSFET driver and MOSFET gate terminal dampens down any ringing oscillations caused by lead inductance and gate capacitance, which can otherwise exceed the maximum voltage allowed on the gate terminal. Also, using pull-down 100k resistor (R5) from the gate to the source of the MOSFET is a good practice.

PCB and component 

An actual-size PCB for the DRL controller circuit is shown in Fig.and its component layout Enclose the circuit in a suitable small box with connectors CON1 and CON2 on the front side to connect the seven control signals and the DRL.

After assembling the circuit, refer to the wiring guide table before connecting these to the PCB board.
Panel-mount the input and output interface, as required.

The default Set Off mode of the DRL is given below:

IGN+ (ignition): ON→DRL: ON
HL+/PL+/PB+ : ON→DRL: OFF



switching to light emitting diode (LED) lighting for automotive headlamps because of its features such as high efficiency and long service life. In addition, from a safety perspective, applications of LED-driven daylight/daytime running lights  for vehicles are spreading in many states.


Thursday 16 June 2016

Wireless Multimedia Sensor Networks

The enormous growth of wireless communication technologies have already established the stage for large-scale deployment of wireless sensor networks. A typical WSN consists of a large number of small, low-cost sensor nodes, which are distributed in the target area for collecting data of interest. Most of the time, WSN is used for monitoring, tracking and event management related applications. WSN is not a new topic as many inventions have been done and countless applications have been successfully implemented.


The similarities and differences between ad hoc wireless networks, wireless sensor networks and wireless multimedia sensor networks . All these networks are used for small-scale and medium-scale networks that do not require a fixed architecture and can be deployed temporarily. WMSN requires a novel architecture, and the advanced protocol design and algorithms need to be implemented to fulfil the criteria. This article exposes the internal structure of the multimedia sensor node, architecture of WMSN, their challenges, research opportunities and applications.

Internal structure of the multimedia sensor node

Normally, a multimedia sensor device includes a sensing unit, processing unit (CPU), communication module, co-ordination sub-system, storage unit and an optional mobility/actuation unit. Sensing units usually have two sub-units: sensors [digital micro cameras, microphones and/or scalar sensors, and analogue to digital converters. Most of the sensors generate analogue signals which should be converted into digital form by using ADCs as these are to be fed into the CPU.


The system software in charge of coordinating sensing and communication tasks for signal processing, and it is interfaced with a storage unit. A communication Tx/Rx module interfaces the device to the network. In many applications, it has been observed that around 70 per cent of the battery is consumed for transceiver processes and the remaining 30 per cent consumption includes computational tasks, signal processing, co-ordination systems and sensor sub-units.


A coordination sub-system coordinates the operation of different network devices by performing various tasks, such as network synchronisation and location management. A mobility actuation unit can enable the movement or manipulation of objects, like motor, to track the object. The whole system is powered by a compact power unit that may be supported by an energy-scavenging unit, such as solar cells. Table II gives an overview of the features of hardware platforms for WMSNs.

WMSN architecture

The reference architecture of a WMSN, which is classified as single-tier and multi-tier architecture. Before we discuss further, it is important to know about the functionality of all components used in this architecture.

Standard audio and video sensors capture sound, still or moving images and videos of low resolution. Scalar sensors are another type of sensors that sense scalar data and physical attributes, such as temperature, humidity and pressure, and report measured values to their cluster head.

Multimedia processing hubs behave as cluster heads. These devices have comparatively large computational resources and are suitable for aggregating multimedia streams from individual sensor nodes. 


The storage hub allows data mining and feature-extraction algorithms to recognise essential characteristics of the event, even before the data is sent to the end user. The sink is a common data-gathering point of IP-less networks. It also supplies filtered data to the user at the remote end, gathered by a WMSN. Multiple sinks may be required in a large or heterogeneous network.

The gateway creates a bridge between an IP-less network and IP based network. It is an IP-addressable component of the WMSN. It gives permission to the user to monitor and control the WMSN from a remote location as it has an IP address and the capability to create a connection with the Internet.

In cluster topology, a group of nodes form a cluster, and the geographical target area is divided into numbers of clusters. Each cluster has one cluster head and one cluster member. In a cluster, two members cannot communicate directly, as shown in Fig. 3(b).

Challenges and opportunities

High data rates. WMSNs require high data rates as data is in terms of live video streaming, audio and still images. Achieving high data rates (in terms of Mbps) on available narrow channels is a challenging task. Recently, researchers started to implement ultra-wide band (UWB) technology on sensor nodes for higher data rates.

Signal detection and estimation

 Signal detection, estimation, filtering, data gathering and wireless channel separation are still open research challenges for the implementation of WMSNs. Researchers have proposed OFDMs (frequency-division multiplexing schemes) to increase data rates and remove interference between two wireless channels.

Reliability

 High information assurance is expected in WMSNs, and for that effective error detection, correction code with accuracy, robustness, resiliency and retransmission policy need to be found out.

Energy efficiency

Nodes have limited battery and, for most applications, charging and replacement of the battery is not possible. Nodes need to serve for many years. To reduce power consumption, researchers have already started designing and implementing different types of MAC protocols. Energy efficiency can be obtained by implementing new algorithms on the physical layer (modulation techniques, architecture, etc) as well as on the MAC layer.
Security and privacy

Multimedia industrial monitoring and control kind of applications require high privacy and security. Unauthenticated persons should not be able to access private data.

Quality of service (QoS) and quality of information(QoI)

High QoS and QoI are required on each and every communication layer. The resolution should be good enough at remote places. For video streaming, 5fps to 20fps (frames per second) is expected for better quality, and all layers should be designed accordingly.

Applications

WMSNs have numerous killer applications. Multimedia surveillance sensor networks can be used to enhance and complement existing surveillance systems to prevent crime and terrorist attacks. These can be used to locate missing persons, identify criminals or terrorists and record other potentially relevant activities, such as thefts, car accidents and traffic violations. With the help of WMSNs, it will be possible to monitor car traffic in big cities and on highways that offer traffic-routing advice to prevent congestion or identify violations.


WMSNs play a vital role in personal health care units. Telemedicine sensor networks can be integrated with 3G and 4G mobile networks to provide ubiquitous health care services. Patients can carry various types of medical sensors to monitor different parameters, such as blood pressure, ECG, breathing activity, pulse oximetry and body temperature. Remote medical centres or personal doctors can monitor the condition of patients to infer emergency situations. This will be more beneficial for villages and rural areas where doctors and health centres are not available all the time.

Monday 6 June 2016

What is IoT?

IoT explained

The Internet of Things  is about giving intelligence and connectivity to almost everything. Maybe the best-known example of an IoT device is the smart thermostat, which communicates with your PC or smartphone and learns what you like and when and programmed itself.


Some devices also use sensors to detect when nobody's home to prevent waste. Where things get interesting is when you have lots of smart devices connected to each other and to a central hub, which might be your PC or a device such as your Xbox One.

With a few well-chosen devices you could automate all kinds of interesting things, so for example your fitness tracker might tell your lights when you're off to bed and then monitor your sleep to find the right time to wake you up gently, giving the coffee machine and the thermostat a nudge so the house is toasty and your coffee ready when you get up.


Your Kinect camera could monitor the house when you're at work, alerting you if it sees anything suspicious, and your fridge could add things to your shopping list when you're running low on supplies.

Windows 10 and IoT
The Windows operating system fit into all of this? 

Developers can create apps that work across all kinds of devices, and Windows 10 devices can change the way they work according to what they're connected to - so for example thanks to a technology called Continuum, a Windows smartphone can deliver a PC-like experience when you connect it to a keyboard and display.

You use the same apps, but the apps adapt - so Outlook changes from the mobile-focused version to a PC-like version. Universal apps will also work on the Xbox One, so developers can create apps that work not just for desktops and laptops but phones, tablets and consoles too.


Things get really entertaining when you add Hololens to the mix. Hololens is Microsoft's augmented reality (AR) headset, and it overlays computer graphics on the real world - so you could get it to show you an enormous TV on a bare wall, or overlay Mine-craft on your sofa.

Hololens is an early version of AR technology - in the long term we'll get AR embedded in normal glasses or sunglasses.

There are attempts to create open standards everyone can use, but there are many competing. The answer may be in what's called a bridge, a device that acts as a translator between two standards - so for example you might have a bridge that enables your Xbox One to control Home-Kit or Brillo devices, or vice versa.

Hue and cry

connected technology is Philips' Hue lighting system, which you can control from smartwatches, mobile devices and - via third-party apps - Windows 10.


The lights connect to a wireless hub that you connect to your wireless router, and you can then create light 'recipes' that change the colours and brightness. It's one of several such systems and by far the best known.

That doesn't mean its the best loved, however. While it's great fun Hue isn't cheap - a hub and three bulbs will set you back £149  and when rivals such as GE started making Hue-compatible bulbs using the same Zigbee wireless technology but with lower prices, Philips issued a firmware update that stopped third-party bulbs from working. It said it would change its mind after massive public outcry.

This demonstrates one potential danger of the Internet of Things: if you can't connect the devices you want to use, the Internet of Things is really the Internet Of Only A Few Things.



We shall have some Pi

it's a bare-bones computer kit that uses SD cards for storage and ships without keyboards, mice and other fripperies. But it's a fantastic device and it now runs Windows thanks to Windows 10 IoT Core, a version of Windows designed for the Internet of Things.

Microsoft's own demo used Windows on the Raspberry Pi 2 to control a virtual robot via a Hololens headset, overlaying computer graphics on a real, fully functional and controllable robot that can respond to voice commands.


That also means it's cheap and cheerful. For £32  you can have a kit that you can use to connect to and get data from sensors, to run robotic arms, to get information from cloud-based services on the internet and display it using LEDs or displays, to connect cameras and to do pretty much anything else you can think of. The Raspberry Pi can be as simple as a single sensor trigger events, or you can make it the brains of a complex system programmed in Visual Studio.


Sunday 5 June 2016

Moisture Monitor for Plants

Over-watering and under-watering both are harmful for plants. Roots need air as well as water. If the soil is constantly saturated, air cannot reach the roots and they suffocate. Also, excess water weakens the plant and makes it susceptible to various diseases, particularly fungal attacks. Under-watering, on the other hand, is equally harmful. Plants not receiving enough water droop from the top down and leaf edges turn brown.


Moisture monitor provides a solution to the above problem by monitoring the moisture level of the soil and producing an audio-visual alert when the moisture goes below a preset level, indicating that the plant needs to be watered.

Circuit and working


The core of the circuit is inexpensive and built around popular 14-stage ripple-carry binary counter CD4060  and a few commonly available components. Not all the outputs of the binary counter are available externally. The frequency at pin 7  of IC1 is actually divided by 24=16 compared to initial astable frequency. Similarly, Q4 will have half the frequency of Q3. Components R3, R4 and C2 set the clock oscillator frequency to control the flash rate of LED1 and the beeping rate of PZ1. Pulses are enabled when reset pin 12 is low and disabled, or inhibited, when reset pin is high.


Tthe circuit is simple and straightforward. The base of transistor T1 is connected to a gimmick potential divider comprising sensitivity control preset VR1, fixed resistor R1 and the moisture sensor probe. In standby state  IC1 is disabled because its reset pin 12 is directly tied to +9 V through resistor R2. However, when the soil is dry, transistor T1 is forward biased by VR1 and R1. This enables IC1 to oscillate. As a result, LED1 starts blinking and piezo-buzzer PZ1 sounds to indicate that the plant needs water.


PCB and component layout




The whole circuit in a suitable crystalline tube or box. The moisture sensor probe can be constructed using two small metal rods mounted vertically with a small gap about 10 mm in between them. These two metal rods must be supported by a small insulated board. You can place one flora caretaker in each plant pot for constant monitoring of soil moisture.


Wednesday 1 June 2016

Vibration-Activated Smart Probe

low-cost, energy-saving and device-saving circuit for an electronics lab, service centre, electronics workshop, or wherever a CRO is in use. A vibration sensor attached to a CRO probe senses motion when you pick up the probe and turns on the CRO. It turns the CRO off when the probe is idle for a specified amount of time.

A CRO is used for a very short time. But in most cases, the user fails to switch off the CRO immediately after use. The service engineer mostly concentrates on faults rather than noticing whether the CRO is on or off. This results in wastage of power, reduction in CRO lifetime and leads to phosphorus burn in the cathode ray tube due to electrons hitting the screen on the same spot for a very long time, which again leads to reduction of CRT lifetime.


Circuit and working

The block diagram of the vibration-activated smart CRO probe is shown in Fig. A vibration sensor fixed on the CRO probe senses the vibrations picked up by the probe. This vibration signal is sensed, stored in a capacitor, compared with a reference voltage and fed to the relay driver to switch on the CRO. An additional circuitry is provided to switch off the CRO and give an audio acknowledgement in the form of a beeping sound.


The circuit diagram of the vibration-activated smart CRO probe is shown in Fig. It is built around bridge rectifier DB107 , vibration sensor HDX-2NC connected across connector CON2, quad comparator LM324 , 1N4148 and 1N4007 diodes, relay driver transistor BC547 ,12V single-changeover relay  and a few other components.

The circuit is built around IC LM324, which is a low-cost, quad operational amplifier. 
Op-amps in this circuit are configured in comparator and inverted-buffer modes.

HDX-2NC, a normally-closed vibration sensor is used. A vibration sensor is a small two-terminal component connected across connector CON2 in series with resistor R1. Point A in the circuit is connected to pin 3 of IC1, which is its non-inverting terminal. Under normal conditions, point A is connected to ground via sensor HDX-2NC. During vibration, its contact opens for a very small amount of time.



Op-amp A1 acts as an input comparator. Resistors R2 and R3 act as potential dividers and produce around 1.2V at point B in the circuit. When there is vibration, 12V is produced at the non-inverting terminal of op-amp A1, which is greater than 1.2V at its inverting terminal. As a result, around 12V is produced at the output of A1. This is indicated by the glowing of vibration-sense indicator LED1.

The 12V produced at output of A1 charges capacitor C2 via diode D1. D1 allows the flow of current in only one direction, that is, from op-amp A1 to capacitor C2. Whenever there is a vibration, C2 charges to the maximum voltage and slowly discharges through resistor R9.

Maximum discharge time of C2 is around 30 minutes. Potmeter VR1 is used to set delay. Op-amp A2 is configured as a comparator, which compares the capacitor voltage against the set potmeter voltage. When C2 discharges, voltage decreases at the non-inverting terminal of A2. When voltage at C2  decreases beyond the set voltage, output of A2 at its pin 7 goes low. Output of A2 is connected to relay driver transistor T1.

PCB and component layout PDFs

When A2 output is high, relay RL1 energises and the CRO gets AC mains power supply via relay contacts to operate it. At the same time, the CRO-on indicator LED2 glows.


On time of the CRO can be set as per requirement using VR1. With a small voltage set via VR1 at inverting terminal pin 6 of A2, greater will be the delay. Similarly, with more voltage set, smaller will be the delay.

An extra op-amp is used to provide acknowledgment to the user that the CRO has switched off after some idle time.For this, A3 is used in inverting-buffer mode. When output of A2 is high, output of A3 will be low, and vice versa.



When the CRO is off, output of A3 will be high. Due to this, the buzzer gets activated and produces a beep sound whose loudness gradually decreases within a short time. This happens because C3 initially acts as a short circuit and charges to +12V and blocks further current passing through the buzzer. Increasing C3 value makes the buzzer beep longer. This acknowledgement is like a communication between the user and the circuit. LED3 also flashes when the beeping sound is produced.


Construction and testing

An single-side PCB for the vibration-activated smart CRO probe is shown in Fig.and its component layout in Fig After assembling the circuit on the PCB, enclose it in a suitable box. Connect 230V AC input across CON1 and CON3. Connect the CRO across CON4.

Fix the vibration sensor on top of the CRO probe as shown in Fig. Use a highly-flexible and lightweight wire to connect the sensor. Connect AC mains supply’s live wire L and neutral N across CON3.


Potmeter VR1 is calibrated in terms of time.10.45V is the maximum C2 charging voltage when sensor is subjected to vibration. During calibration mark the minimum and maximum 25 minutes delays. Proposed front-panel dial is shown in Fig.

Provide proper insulation between AC and DC voltages. Ensure all test points have voltages as per the table before using the circuit. Main DC voltage at TP1 is unregulated.