Archive for the ‘diy’ Category

Arduino Sensor Shield

Thursday, May 23rd, 2013

I ordered some time ago Arduino Sensor Shield v4.0 because it is an easy way to connect input and output devices to Arduino. Arduino Sensor Shield provides three pin (ground, voltage, signal) interface for connecting all kinds of sensors (potentiometer, button, LDR etc.) and output devices (relay cards, servos etc..) to Arduino.

sensorshieldsmall

The Arduino Sensor Shield v4.0 product came without any documentation. Fortunately SensorShield page at Wikispaces gives a good description what you can do with the sensor shield (I checked that before I bought Arduino Sensor Shield v4.0). I will not start to rewrite that material to it. Here is a good picture from SensorShield page that shows clearly the Arduino Sensor Shield v4.0 connections:

dianzijimu

This Arduino Sensor Shield v4.0 did what is promised to do well at least for three pin input and output sensors (I have not tested other function). This was well worth of the price US$6.30. Just plug the board on top of Arduino board and start experimenting. It makes much easier to connect many sensors than just wiring them to Arduino board connector (very quickly becomes a hard to manage wire mess).

Microphone Adapters for consumer camcorders

Friday, May 17th, 2013

Some days ago I had to help a friend to interface several microphones to a Canon camcorder microphone input. I had interfaced earlier years ago microphones to several prosumer and professional video cameras, but I though it would be a good idea to do a Google search to check what is said on interfacing to Canon cameras.

When I did a search I found a good web page on camera microphone interfacing: Microphone Adapters for consumer camcorders (I know would be able to trust the information on that page because I had earlier good experience on ComClone2 project from same designer). Microphone Adapters for consumer camcorders has this nice plan for interfacing XLR microphones to video camera:

The capacitor should have capacitance something between 1 to 5 microfarads. This looked like a good plan. The question mark was if the dynamic mics had enough output signal to be useable with the camera mic input that was designed for electret capsules (which have typically considerably higher output level than dynamic microphones). It was impossible to test because at the moment I did not have access to that camera. There seems to be commercial adapters for adapting microphones to video cameras that include also amplifiers like ones shown in this video:

I ended up planning an approach which could be easily adjusted on the field when all equipment are there. The approach is quite traditional audio application where the microphones are connected to a small mixer, and the output from audio mixer is connected to video camera input. I made the connection from the mixer main output to camera mic input using a pair of DI unit boxes: those convert line level audio signal from 6.3 mm plug output on mixer to mic level output on XLR connector plus provide transformer isolation for the signal (very often needed to avoid ground loop humming).

I wired the mic signal from XLR outputs directly to 3.5 mm plug (I had such cable already made). In this specific application I could live without the capacitors, because the specific DIY DI unit could handle few mA of DC on it’s output without a problem to sound quality (not all DIs can do this, but my my old trusty DI box with heavy transformer can do that). I tested this approach without video camera by connecting the output to PC mic input (close enough to video came mic input characteristics on many cases). I expect the things go smoothly with the real camera.

Friday Fun: Car key Hack

Friday, May 3rd, 2013

Your daily commuting can become mundane and boring. Hilarious Car Key Hack Lets You Drive It Like You Stole It article shows how you can easily spice things up with this clever hack that makes it feel like you’ve just jacked someone’s ride. All you need is an old screwdriver—the more worn it is the more convincing the effect will be—and a car key you’re willing to hack to bits. Drive It Like You Stole It page has all the building instructions.

I think this is funny and all, but it could get annoying in shorter time than it took to make the hack. And this hack would work only on old cars with mechanical locks. Majority of the cars in use nowdays have microchipped keys, so this hack does not work for them (unless you get a clever idea where to hide that microchip and surrounding electronics, some ideas for that can be found at Drive It Like You Stole It page discussion).

Will the SMD resistors marking become a history?

Wednesday, April 17th, 2013

The markings on SMD components have been always hard to read. Besides the fact that the numbers and letters in them are very small, the number coding used on them is different than what is used on traditional though-hole components (the reason is that there would not be enough space to print any long codes to those components). How to decipher those SMD resistor codes has been always a hard task. Pages like SMD Resistor Coding, The SMD Codebook, Marking SMD have tried to give some help on this.

Hackaday.com reports that it might be soon time that you can forget how to decipher those SMD resistor codes. Looks like surface mount resistors might be unmarked like their capacitor brethren. There are several reports (electronics-lab.com, dangerousprototypes.com and soselectronic.com) titled Will the SMD resistors marking become a history? that basically tell the same story: Company YAGEO announced its intention to remove marking of RC/AC 0603,0805,1206 SMD chip resistors from July, 1-st, 2013. The reason for this step is to reduce unnecessary chemical usages for environmental protections.

On EEVblog Electronics Community Forum there was discussion on will the rest of the manufacturers take the same decision. The clearest comment was: Sadly I’m sure they will. It’s not like any of their big customers are really going to care, and if they can eliminate an entire step of the production process the bean counters will ejaculate.

smd_soldering

Everything seem to imply, that the situation with marking of chip resistors (0603/0805/1206) will soon be similar to chip capacitors (i.e. no marking on the top of the component, just component reels have the marking). A lot of SMD resistors already don’t have markings. But that should not be shocking news. You can put probes on your SMD component to verify there value is correct with your multimeter. It was not much of a problem with caps it wont be a real problem with resistors.

Ethernet and telephone can share same wires

Monday, April 15th, 2013

Twisted pair Ethernet (10 and 100 Mbit/s) uses two pairs of wires. Ethernet (10 Mbit/s works well, 100 Mbit/s sometimes) can be run on the old telephone wiring. There some years ago quite a bit of interest in reusing old telephone wiring for Ethernet connections. Reusing old installed wiring for Ethernet works usually well if the cable has suitable for the application (specifications near to CAT3 or better) and there are free cable pairs to use for Ethernet.

There was discussion around 2004 on this case where there was no free pairs on cable for Ethernet would it be possible to run Ethernet and analogue telephone using just two wire pairs. There was discussion on this in Finnish in 10Base-T Ethernet puhelimen ylätaajuudelle Usenet news thread. Here is some information picked from 10Base-T Ethernet puhelimen ylätaajuudelle discussion and translated to English:

What if there are no free pairs. Problem is that of the 1980s and early 1990s, blocks of flats. These are only a 2-pair MHS 1 x 4 x 0.5 telephone cable.

An easy solution would be to abandon landline phones altogether, and the whole cable for Ethernet. Especially mobile phones have replaced landlines on rented houses. All may not be to abandon a fixed phone. Therefore a need for a solution for 10Base-T Ethernet to run the same two among POTS phone at the same time.

EtherSPLIT

The discussion 10Base-T Ethernet puhelimen ylätaajuudelle discussion (translated to English) mentioned also a commercial product available at the time (the manufacturer does not seem to have a web site anymore at that address):

The U.S. market is available etherSPLIT-called solution. http://www.ethersplit.com/
In this solution, Ethernet is places on on two telephone cable wire pairs normally. Phone Signal is connected between pairs so that the two phone wires connect together Ethernet-pair wire. Connection on both ends there is a separation filter. In my opinion, mainly inside the box a couple of capacitor, which prevents the phone high DC voltages migration of Ethernet devices.

The problem with this solution is also the fact that the phone signal is not anymore rotated among the transport. As a result, the crosstalk of different housing between the phones. (The American view, this might not be a problem, because inside house cabling can be untwisted wire anyway.)

There seems to be available some more information on etherSPLIT still on-line at etherSPLIT secrets discussion where I and the original inventor took part.

Not a balun, not a frequency splitter.

As for its uses it is used for retrofitting existing properties. Utilitizing existing copper that cannot support 100+ megabit speeds with standard ethernet. And using existing two pairs to split to three pairs using standard ethernet hubs/switches and no extra power supply needed. Apartment complexes, hotels, and cruise ships have all been installations for this product.

As for every electrical engineer that has seen the circuit, there first response is “it can’t work”…. “well, maybe”…. “damn, that’s clever”.

thanks,
Tom Dodge
inventor of etherSPLIT

Besed on the information on the discussion it seems that this etherSPLIT could use techniques similar to used to make Phantom circuit and to run Power over Ethernet over same pair as data. EtherSPLIT Installation Instructions and Wiring Diagrams document says that etherSPLIT will NOT function properly with 10/100Autosensing Switches/Hubs. Be sure to use ONLY10BaseT Switches or Hubs.

Ethernet and phone on same pair

In the discussion 10Base-T Ethernet puhelimen ylätaajuudelle (translated to English) there was talk about another idea idea for running Ethernet signal and telephone signal on the same wire pair in a similar ways as ADSL and HomePNA signals are run on the same pair with the analogue telephone: frequency division multiplexing. The ADSL signals run on the high frequencies (tens of kHz to 1-2 MHz), while analogue telephone runs on low frequencies (0-3.5 kHz). Those can be separated from each other with quite simple low pass (ADSL filter for telephone) and high pass filtering (capacitor in ADSL modem input circuit). The Ethernet signals are in the same way at considerably higher frequency (main energy between around few hundred kHz and 10 MHz) than analogue telephone signals, so the same kind of filtering might work here as well.

Here is some information picked from 10Base-T Ethernet puhelimen ylätaajuudelle article translated to English:

High frequencies are filtered thus telephone branch is connected through standard ADSL / HomePNA “Micro filter” filter. The filter must be placed close to the branch point to telephone line, to avoid signal reflections.

Balanced by the post and 20Hz ringing frequency getting to Ethernet branch must prevent. This capacitor is apparently sufficient to distinguish between an Ethernet branch and telephone line.
– What is a suitable capacitor?
– What is the voltage required for the duration?

Petri Krohn submitted the following idea to 10Base-T Ethernet puhelimen ylätaajuudelle discussion:

The following ASCII graphic is a picture of the apartment passing switch Ethernet-pair wiring. In the opposite direction the Ethernet traffic is telephone cable to a free people without Any Of ylimäräisiä connections.

_______________________________________________

                            Tietokoneeseen (Tx)
                               /----||---------
Puhelinkeskukseen             / /---||---------
     ________                / /  ________
----|Suodatin|----/----~~~--/-/--|Suodatin|----
----|________|---/-/---~~~---/---|________|----
                / /             Lankapuhelimeen
----------||---/ /
----------||----/
Ethernet-kytkimeen (Rx)
_______________________________________________

Selityksiä:
 --||-- Kondensaattori suodatta tasavirran Ethernet-haarasta
 -~~~- Kymmenien metrien puhelinkaapeli puhelinjakamolta asuntoon

Here is my edited version of the original drawing (translated to English and other direction for Ethernet added):


                              To computer (Tx)
                               /----||---------
To Telephone central          / /---||---------
     ________                / /  ________
----| Filter |----/----~~~--/-/--| Filter |----
----|________|---/-/---~~~---/---|________|----
                / /               To telephone
----------||---/ /
----------||----/
To Ethernet switch (Rx)

-----------------------~~~---------------------
-----------------------~~~---------------------
To Ethernet switch (Tx)           To computer (Rx)

--||-- = capacitor
-~~~- = long cable to apartment (tens of meters)

I did some tests on this when I read this article and posted a reply where I told on my results. Quick test on capacitor values: I had the PC with 10 Mbit/s Ethernet card. I put the signal to go in the past 10 nF capacitor (size I calculated to be OK, more than 4.5 kohms at telephone frequencies and few ohms at few MHz) through. Ethernet connection seemed to go well at least on short cables. For initial tests I used just small 470 microhenry coils as filters for the telephone line side (10 ohms or less at telephone frequencies, few kilo-ohms at Ethernet frequencies). Those coils gave enough isolation so that the Ethernet worked well, but those might not meet all of the telephone regulations. I used normal telephone line and telephone central simulator on line ends on my tests (I did not connect to public telephone network).

Here is a picture of the prototype inside dual RJ-45 wall socket (Ethernet on left and phone on the right) with capacitors and filter coils.

dailypic

I built two of those, and then run Ethernet and telephone line through the system. One direction of Ethernet shared the wire pair with telephone line (though those capacitors), the other direction went straight though on it’s own pair. Things seemed to work well on 10 Mbit/s Ethernet speed. I even tested by having 100 meters of CAT5e cable between those outlets, and Ethernet seemed to work (I also tested on some other cables). Seemed to work on ping tests and normal web surfing. And using the phone did not seem to have effect on the communications. Things seemed to work well at 10 Mbit/s (but not that reliably at 100 Mbit/s).

To the capacitor voltage ratings next. In my prototype I used 250V 10 nF ceramic capacitors. Those were about 1 cm diameter disks. Those were easy to fit inside RJ-45 wall socket. A 500V version of the capacitor would be a little bit bigger. The question is what would be the needed voltage rating for those capacitors? I don’t really know. Would we need something like 1-2 kV capacitors to be on safe side, or would just a lower voltage do because Ethernet cards have 1500V isolation in them (comparable to minimal isolation needed on telephone line modems).

I also tested an ADSL filter as the filter on the circuit, and it also seemed to work well (I only had that ADSL filter on one end of line because at the moment I had only one such filter). Here is the circuit diagram of ADSL filter I used on my tests:

The ends results was that running Ethernet over the same pair with analogue telephone circuit could work at 10Mbit/s. In theory it could work, and in practice it seemed to work on laboratory conditions as well. The next plan at the time was maybe to test that in real-life conditions and looking more at the technical regulations that needs to be met (voltage ratings, protections, EMC etc..), maybe explore how well the commercial ADSL splitters will work on this. There were ideas at the time, but I did not have enough interest and needed time to push this idea more. Maybe it was good that I did not spend more effort on this, because the time just got past to this kind of hacks that are pretty much limited to 10Mbit/s speeds.

Also in next years the demand for analogue telephone seemed to drop when everybody seemed to want mobile phone and not the traditional phone line (especially those ones who wanted fast Internet connection). Also operators started to offer reasonably priced fast Internet connections (ADSL 8-24 Mbit/s, sometimes even faster with fiber to house and VDSL to apartment on free wire pair). So this hack was a solution that was not widely needed, and soon 10Mbit/s Internet connection which this kind if hacks were pretty much limited did not feel to be very fast anymore.

RC servo modification for continuous rotation

Thursday, April 11th, 2013

A standard hobby RC servo motor is designed to rotate through only 180 degrees. They are most often used in RC applications (like steering). The servo motor controlling is done with servo control pulses (1-2 ms pulse at around 50 Hz rate). More details on the control signals can be found at Servo protocol web page.

If you wish to use a servo motor for a robot drive system, you want a motor that turns more than 180 degrees. Continuous Rotation Servo is an useful tool for robotics and basic movement projects.

It is possible to modify a normal RC servo motor (at least most of them) so that it will rotate through 360 degrees and beyond and in either direction. It gives you a nice geared motor which is controllable by PWM signals. Modifying Hobby Servo Motors for Continuous Rotation paper details how to make this modification on a Futaba S3003 servo motor, but the principles should work on most other hobby servos. In this modification you need to do a little bit soldering (replace potentiometer with two resistors) and some mechanical modification (remove the end stopper from servo).

Modification of a Futaba S3003/S3004 Servo for Continuous Rotation shows another way to do the modification, here you just make two mechanical modifications: cut the end stopper and potentiometer shaft. There are several YouTube video that show you how you do the modification: Futaba servo motor modification, How to Convert a Servo to Continuous rotation and How to: Mod servo for continous rotation.

I have made some playing with the idea and found that those modification principles work. I opened one Futaba S3003 servo and played with it without doing all the modifications.

The modified servo motor can be an useful tool for robotics application, because it is small and can be controlled with anything that can control normal RC servos (for example normal RC transmitter+receiver pair or for example Arduino board). This kind of modified servo motor works so that when the servo is set to neutral position (center), the motor will be stopped. When you move the position off from it, the motor starts rotating to direction controlled with the change direction. With change from central position first the motor typically start rotating slowly, and with somewhat more off the center the motor reaches the full speed.

The modified servo is not ideal controlled motor, because the exact position which is “neutral” (motor is stopped) is quite small and typically varies somewhat from servo to servo (needs tweaking to get things so what motor stops when you want). Also the speed control is not very accurate.

Traditional way to control rotating motors with RC signals would be to use an electronic speed control (ESC) that takes in RC servo pulse controls signals and sends controlled amount of power to the controlled electrical motor (being it traditional DC motor or brush-less DC motor). Regardless of the type used, an ESC interprets control information not as mechanical motion as would be the case of a servo, but rather in a way that varies the switching rate of a network of field effect transistors that send the power to the motor. ESCs designed for sport use in cars generally can run motors on both directions (have reversing capability).

Robot week in USA

Monday, April 8th, 2013

EDN magazine reported just few days ago that National Robotics Week has started. There are many robotics events arranged around USA. EDN magazine page from last Friday has a list of links to interesting articles on robotics. There are for example articles on Roomba sensors for hackers and building a power supply for your robot.

There is also an interesting link to Industrial robot made into an amusement ride video of an industrial robot that has been programmed to make an amusement ride.

This robot ride idea shown in the video might look a little bit extreme, sci-fi and dangerous. But the strange thing on this idea is that it has already been found it’s way to amusement parks: there is a robot ride in Legoland. The individual passengers use touch-screen terminals to customize their own 90 second long program.

Friday fun: Overly attached girlfriend spy device

Friday, April 5th, 2013

Do you still remember Overly Attached Girlfriend meme? Hacking a radio controlled spy device for overly attached girlfriend page has yet another update to this theme: a special DIY spy device.

Hacking a radio controlled spy device for overly attached girlfriend article has also information how it was built.

DIY Polygraph Machine for April 1

Monday, April 1st, 2013

April Fools’ Day is celebrated in many countries on April 1 every year. It is widely recognized and celebrated as a day when people play practical jokes and hoaxes on each other.

Lying is awesome way to get people fooled. Here is one idea how to avoid being fooled: use a lying detector. If you’re industrious and don’t have the dough for a legit polygraph, you can make your very own galvanic skin response (GSR) device. DIY Polygraph Machine: Detect Lies with Tin Foil, Wire and Arduino article shows you how you can build your own polygraph with Arduino board. Please note that this device is by no means foolproof.

Who owns our modern stuff?

Thursday, March 21st, 2013

In my posting War on DIY Electronics I already told that that the trend is that electronics is heading to be less and less hackable. Wired has an opinion article Forget the Cellphone Fight — We Should Be Allowed to Unlock Everything We Own that has many good points that I can agree on. USA Congress is working on legislation to re-legalize cellphone unlocking. The copyright laws that made unlocking illegal in the first place and it makes many other things you might like to do illegal in USA.

Who owns our stuff? The answer used to be obvious. Now, with electronics integrated into just about everything we buy, the answer has changed, because in digital age even the physical goods we buy are complex (usually run by complex software that runs on embedded computer or many of them). Copyright is impacting more people than ever before because the line between hardware and software, physical and digital has blurred. We really don’t own our stuff fully anymore – the manufacturers do own at least some some important parts of it.

Because modifying and repairing modern objects (home electronics, cars, etc..) requires access to information (manuals, error codes, and diagnostic tools) that manufacturers don’t like to give out. Property rights issue is turning many regular people into criminals: When they try to do something manufacturer don’t like, the manufacturers claim those people are illegally “reproducing copyrighted material.” Fixing our cars, tractors, and cellphones should have nothing to do with copyright. We should be allowed to unlock everything we own.

Manufacturers have systematically used copyright in this manner over the past 20 years to limit our access to information to create information monopolies at our expense and for their profit. Most manufacturers seem to like to have a closed platform, walled garden or closed ecosystem.

Fortunately there are nowadays some exceptions to this rule, for example open-source hardware companies and open-source software companies. Open doesn’t conflict with money although it often appears to.

I do not think open conflicts with making money and further I think there are ways to make more money by being open rather than closed. Think about for example Internet, PC, Linux and Android. Open source software has created many well working businesses. Economic growth occurs whenever people take resources and rearrange them in ways that are more valuable.


film izle erotik film izle film izle sinema film izle korku filmleri film izle film izle film izle film izle