Everything for Electronics

Tech Forum Questions





iPhone / X10 Control January 2013

Is there a way to operate my home X10 devices using my iPhone through my Wi-Fi network (preferred) or Bluetooth?

#1132
Anton Stamos
Scottsdale, AZ



Answers

Try the Insteon hub. It gives you smartphone and web access to your Insteon and X-10 modules at home or away, plus text alerts from sensors, if you install them. It’s a free app and there are no fees. Or, use the Smartlinc unit — an older version of the above — except no text alerts.

Mike Carland
Santa Clarita, CA


Microcontroller Newbie January 2013

I’m just starting in electronics and have taught myself some of the basics through reading books and building kits. I’m intrigued with microcontroller projects and was hoping to get some seasoned opinions on where to start. There seem to be several popular platforms that get most of the attention such as Arduino, PIC, Stamp, Propeller, etc.


Which is best for a beginner?


Can someone recommend a book on programming that assumes zero experience and explains the basics from the start through getting a simple project up and running?
Are there any beginner-friendly online user groups I might join?


Any advice is appreciated.

#1131
J.P.
via email



Answers

As a newbie myself, who has tried several approaches, I found one element left unsaid in the answers in the March issue.  It really matters what computing platform you use.  As a Mac user, I found it very hard to get going with the Parallax or Microchip solutions, since the development systems were extremely PC-centric, so I had to struggle with Boot Camp etc. or get a PC.  The Arduino and Atmel platforms were much easier, since the former supports the Mac thoroughly, and everything you could need for the latter can be found at http://www.obdev.at/products/crosspack.

Joe V
via email

I recommend the BASIC Stamp modules from Parallax because newcomers find them easy to use. In addition, Parallax has many books and manuals, as well as kits that get beginners off to a good start. I also like the Arduino Uno because of widespread support from users. The compatible Digilent chipKIT Uno32 provides a more powerful processor and will appeal to people who want to move beyond the eight-bit Atmel chip used in the original Arduino Uno. The kits mentioned use a 5V power source and work with 5V logic devices. Other boards — such as the ARM mbed and BeagleBone — operate from 5V, too, but the I/O pins provide 3.3V logic levels. You might find it difficult to breadboard with 3.3V logic chips, most of which come in surface-mount packages.

Jon Titus
Herriman, UT

Hi. There are a number of ways to get started in mcu's.


In my opinion, Parallax has the best documentation to use for getting started with mcu's. If you do not want to buy their packages, you can download the pdf's and source the parts after looking at the components, which they provide in one nice place in their books. If you use a book such as the StampWorks book, then you should examine the schematics for their Professional Development Board (BS2 version and not the Propeller version) and buy the necessary components to build the experiments. Other BS2 versions are available such as the Stamp Stack II. The "What's a Microcontroller" pdf is also a good starting point.


All the concepts you learn with any mcu system will be able to be applied to any other mcu system. The syntax and instructions will vary but the concepts remain the same. Arduino has a number of books written about it and is probably the most popular among those who know little about mcu's. It was made with artists and builders in mind, not for engineers and tech-like people. They have done a good job of marketing and there are many applications made accessible through their "shield" format. Of course, there are quite a few books written about Arduino and you should examine whichever book to find out what parts you will need to work with the projects.


The PICAxe is also fairly popular and is programmed in a version of BASIC. The Propeller is supposed to be a little more advanced as are AVRs, PICs, and other major companies’ mcu's that are mostly programmed in C. For a beginner, I would stay away from the Propeller, AVRs, and PICs as there will probably be too steep a learning curve. The Basic Stamp 2 is a little more expensive as you will need the mcu and, if it is not a USB version, you will also need a USB-to-RS232 converter, unless you have a PC with the old serial port, DB9 style.


The Arduino is cheaper and more popular but you will most likely have to do a little more searching and trial and error to get your code running with the documentation available. Parallax, the company that makes the BS2, has very good documentation. Another advantage that the Arduino has, is that programs written in C/C++ will also work in the Arduino environment.


Books for the BS2: "What's a Microcontroller?" and "StampWorks."
Books for Arduino: the Evil Genius books and probably "Arduino Cookbook."
Books for the PICAxe: Unknown but there are bound to be some on the PICAxe homepage as well as Amazon.


Kits are available from many suppliers. Have a look online for some of these, but the list is not exhaustive: Parallax, Solarbotics, RobotShop, Digikey, ABRA Electronics, Sparkfun, Adafruit Industries, and Make. Be sure to check the websites thoroughly as some also have tutorials as well as documentation on their products.

Bruce Fleming
New Glasgow, Nova Scotia

Hi J.P.
I am also at a similar beginning stage as you describe. I am currently working through a book called "C Programming for Embedded Microcontrollers" by Warwick A. Smith, which I find thus far to be excellent. The ISBN is 978-0-905705-80-4.


Here are the books features: 

  • Use only free or open source software.
  • Learn how to download, set up and use free C programming tools.
  • Start learning the C language to write simple PC programs before tackling embedded programming - No need to buy an embedded system right away!
  • Start learning to program from the very first chapter with simple programs and slowly build from there.  No programming experience is necessary!
  • Learn by doing - Type and run the example programs and exercises, which can be downloaded from the Internet. - A fun way to learn the C programming language.
  • Ideal for electronic hobbyists, students and engineers wanting to learn the C programming language in an embedded environment on ARM microcontrollers.

As a beginner, I personally found Arduino to be the easiest platform to get a running start.

Agg
via email


Inductive kick Diode February 2013

I built a PWM controller for a 36 volt golf cart motor. What size, amperage and voltage do I need for the motor's fly-back diode?

#2132
Edwin Fitzpatrick
Ellijay, GA



Answers

The maximum reverse voltage across the diode will be 36 volts. A conservative rule of thumb is to double that, so choose a diode with a rating of at least 72 volts. The maximum current will be whatever your PWM controller delivers to the motor. When the PWM controller shuts off at the end of each cycle, the voltage across the motor inductance will instantaneously reverse polarity and begin to flow through the diode. Using the same rule of thumb, pick a diode that is rated for twice this current. You also need to be sure the diode can dissipate the power while keeping its junction temperature below TJ max (150 deg C is typical). The power dissipated is 1/2 L I^2 (the energy stored in the motor inductance) multiplied by the frequency of your PWM controller. Depending on this result, you may need to put the diode on a heatsink. Once you know how much power you need to dissipate, check the diode data sheet to get the thermal resistance Rth(j-c) in degrees C/W. Multiplying your calculated watts by Rth tells you how much the junction temperature will rise above its case temperature. There will also be a rise from the case to whatever the case is mounted on (probably a heat sink) but this will be small so you can probably ignore it if you follow the diode manufacturer’s recommendations on how to mount the diode. There will also be a temperature rise of the heat sink above the ambient air. Calculate this using the heat sink data sheet and your calculated power dissipation. Add all of the temperature rises to whatever your maximum ambient temperature is expected to be and if this is less than Tj max, you are OK thermally.

Mark E Whitmore
Frederick, MD


Dog Zapper Circuit Needed February 2013

Back in the 1970s, the now deceased publication of Popular Electronics printed a construction article using readily available components to build a device that used battery power to generate a high voltage spike to electrify a piece of wire. An electric fence, if you will. I built it (at the time) so my boss could train his dog not to urinate on his flowers. I was told it worked great. I built it again, years later, to test the capabilities of another circuit to suppress voltage surges. The schematic for the circuit is long gone and so is the publication. We called it the “Dog Zapper” when we initially built the circuit. I’m not sure that was the name used in the construction article. If someone out there can give me some information on the circuit (or a similiar one), or the month and year of the publication that contained the construction article, it would be greatly appreciated.

#2131
L Tallman
Orange, CA


Light Meter December 2012

Does anyone have a schematic for a simple light meter? I'm trying to determine the difference in illumination provided by CFLs as opposed to incandescent light bulbs. I'm not too interested in the absolute value of the light hitting the surface, just the relative difference between the two. Thanks in advance. Regards, Pete

#12121
Pete Schestopol
Marietta, GA



Answers

I did an experiment a few months ago using a serial port as a light meter that can log brightness data to a file. I posted it at www.cedarlakeinstruments.com/blog/?p=10. The software I wrote to display data isn't online, but I can email it to you if you'd like. Just contact me at www.cedarlakeinstruments.com. Here is the posting:


The lowest cost way I could think of was to avoid a microcontroller or other logic component and use whatever was already on a modern PC. My idea was to use a Cadmium Sulphide (CdS) photocell. CdS cells are used in many camera light meters and work by changing resistance in response to ambient light. By using the current through a photocell to charge a capacitor, we can tell the light level by measuring the time taken to charge. In days of old, we could have used a joystick port to do this, but those are long gone, now replaced by USB-connected joysticks.


On PCs without joystick ports, we could have done the same thing with the printer port. However, those are also a thing of the past.


So far, most PCs still come with serial ports, so we'll try those. The Clear To Send (CTS) and Data Terminal Ready (DTR) lines can be controlled from a Win32 or .NET application. There is some concern about the responsiveness of Windows, but as long as we avoid very short time constants, we can get usable data.


The concept is to build an RC circuit from a photocell and a 200 mF capacitor. The photocell is driven from the DTR line, and the junction of the capacitor and photocell is read by the CTS input. Here's the schematic; it's pretty simple:

 

 

The results are surprisingly useful. Discharging the circuit for two seconds and then charging it while polling the CTS line every five milliseconds shows a clear difference as the photocell is pointed at various areas of a lighted room.

Lyndon
via email

All you need is a small solar cell mounted in the end of a "toilet paper" tube. Make sure the cell's face faces inward and you seal the tube end containing the cell so it's (more or less) "light-proof".  If you wish, paint the inside of the tube FLAT BLACK before mounting the solar cell (reduce any "internal reflections, etc." of the tube).


To use: Connect the solar cell's leads to the DMM (polarity is not important: all you want is the "absolute" display value) and set the DMM to the 2V scale.  Darken the room and turn on the CFL you want to "measure".  Wait a few minutes to allow the bulb to fully "warm up" and point the open end of the tube at the glowing CFL.  The voltage reading on the DMM display will give you the "relative brightness" indication you're looking for (i.e., "higher" voltage reading = brighter lamp). IMPORTANT: Make sure you use the same "measuring distance" (i.e., 1 inch) between the open end of the tube and each CFL you're measuring for best accuracy! Repeat for all CFL's you want to measure.


Hope this helps.

Ken Simmons
Auburn, WA


Remagnetizing Coils October 2012

I did not use my turntable on my sound system for some years, but the other day, I had the urge to rediscover some of my old vinyl discs.


To my dismay, there was no sound when I put on a disc. Troubleshooting led to the phono cartridge, an AKG P8ES.


I went online to see if any of these are still available, and at the same time came across some audio blogs describing the exact same problem being that these particular cartridges are moving magnet types and appear to be prone to losing their magnetism over a period of time. This does not occur with moving coil cartridges. Would anyone know of a way to remagnetize the coils in these types of cartridges?

#10126
David Asselin
St Lambert, Quebec, Canada



Answers

Chances are the magnets are OK on your stylus, the problem is most likely with the coil system in the cartridge body. The coils are not to be magnetized, their job is to generate a voltage from the mechanical movement of the magnets on the stylus shank when playing a record. My experience with the AKG P8 is that it does not age well, so rather than fight a losing battle I suggest replacing it with something new. I just purchased a Shure M97xe and I have no complaints.

Kevin Kaas, C.E. SPC-TV
Largo, FL


Android Platform October 2012

Are there any companies that are developing an Android device that is designed to be wall or panel mounted? I like the operating system and would like to integrate an Android tablet into some automation, but haven't found anything online. My employer would also like to explore some possibilities for industrial applications and a panel mount would work best for them, too.

#10125
John Harris
Delaware, OH



Answers

The Wand board will run Android and is very similar to the raspberry pi. www.wandboard.org

Rick Meyer
Aurora, CO

While it is not exactly a wall mounted product, the Arduino ADK (Android Development Kit) is built to interface with the Android platform. I hear that the Raspberry Pi is close to being able to run Android and that might be an interesting alternative.

Bruce Fleming
New Glasgow, Nova Scotia


Vintage Parts Hunter October 2012

Does anyone have or happen to know where I can obtain a pair of 455 kHz IF transformer cans, and a Local oscillator coil for my homebrew AA five tube super heterodyne AM receiver?


I am using the 12BE6, 12BA6, 12AV6, 50C5, and my friendly 35W4 to build my set. Are there any "old new stock parts" establishments still around these days that may have the vintage parts I require?


I know I can still buy yesteryear radio sets that have what I need. However, I would be more likely to repair them as they are, than to scrap any of them for the parts.


I have my trusty 365 pF dual gang air core variable tuning capacitor with the reduced capacity second rotor set. I hope to have no difficulty obtaining all the rest of the parts, as well.


Can any of you high tech experts direct me to where I can get the above named parts I am lacking? Thanks for any assistance.

#10124
Howard Daniel Rollins III
Kinder, LA



Answers

Look at www.tubesandmore.com They have both local oscillator coils and i.f. transformers for am tube radios listed. P-C208B, P-C70-OSC, and P-C78 look like the ones.

Jim English
Mission, KS


Headphones And Speakers October 2012

I have a pair of 7.1 surround sound headphones. I would like to buy or make a unit to switch all eight speaker outputs to all eight headphone inputs, but I am worried about overloading/blowing up the headphones. I assume some kind of attenuator will be required. Any Ideas?

#10123
Elwyn Horton
Gillingham, Kent, UK


SD/MMC Ribbon Cable To USB October 2012

My Brother Lowrance GPS fish finder model #LCX 112C has been discontinued by Lowrance.

The dual SD/MMC reader interface (PCB #0170920-001 rev.2, mfg by Yang-An Electronics) has been corroded by salt water.

I’m looking for a replacement PCB or a way to connect a miniature 10-pin ribbon cable to USB connector as a replacement to read information from the SD Card.

#10122
James Nolan
St John's, NL, CANADA

Page 33 of 42 pages ‹ First  < 31 32 33 34 35 >  Last ›