I want to start a website, help and recommendations for web hosting, etc.?

I want to start a website, I want forums and maybe a chat. I want a pretty cheap website host (no higher than 7 dollars a month). Do you have any suggestions or help?

Topic by halzep   |  last reply

Help making an LED lamp

Alright, I want to make an LED grow light for my plants because the window I want to put them in doesn't get enough sun. I need quite a bit of light for this application and it will have to be on for a significant part of every day so LED is a must. I've been looking at the prices and it seems like the most economical option is to buy some LEDs off ebay, buy a driver... maybe some resistors... then mock up some kind of heat sink to connect them to. I was considering about 10-20 ten watt on chip LEDs. This light is going to be in a room I'm in a lot so I don't want to go with any funky colors. I'd like to just use daylight spectrum LEDs. Something around 6500k. Anyway, I'm thinking it makes the most sense to get one big driver to run all the LEDs rather than one driver for each. That just seems cheaper and frankly more interesting. But I need help understanding how to wire the whole thing together and understanding whether I need resistors etc. So I'm looking for some general help figuring out what to buy and then how to wire it all together. Thanks :)

Topic by WillE2   |  last reply

Can someone explain thes to me? Answered

I'v been studing electronics for a long time and ran acrost this at a web site this morning.  What are tubes?  Ive seen transistors and thought they were the betinning.  What are tubes and what are all the other symbols on the diagram. Can someone explain all of them (the simbols)  to me and what there purpose is?  Hurry ive only got about a month left of my vacaton and the its back to shool. Some day when I get the the noble piece prise for knowledge I'll include you all in my accpteance speach. PS  I've posted the skematic that didn't post before.

Question by i-want-to-know-it-all   |  last reply

Hacking (etc) car fobs

Those fobs you get with new cars are hideously expensive, and I'm sure it's 100% profit for those selling them. Can anyone here direct me to a site that sells them at reasonable prices, and some info on programming them for my car? Also, one thing that's astonished me for years is that no one has built a kind of "run-all-frequencies" transmitter, such that some evil person could walk around in a neighborhood or mall parking lot and set them all off! The circuits and info must be available somewhere! (I"m not about to do this myself--too many other fun things on my plate.)

Topic by Curiousguy99   |  last reply

RF remote Microcontroller etc?

So I found this remote control deal http://www.lightobject.com/1Ch-Remote-TX-Unit-IC-1527-C1-case-P385.aspx For the past few months I've bounced around the idea of using a hacked remote to turn the lights in my room on and off. This, however, makes hacking stuff a non issue. However, I still don't know how to make the remote communicate with a microcontroller. The one I linked appears to have an antenna, which is undesirable, but could become an option if nothing else. I also would like to see if I can find a similar control that uses infrared. Right, so, Basically I want a remote that sends a single signal to some kind of Microcontroller. When this signal is received, I want the microcontroller to emit a single pulse to toggle a latching relay to turn my lights on and off. Where should I look to find ideas or buy parts? I already have an Arduino, but I think I'd rather build a knockoff for a permanent circuit. So thanks in advance.

Question by mrmerino   |  last reply

best? Answered

What is the best instructable. I want to know what u guys think because i'm trying to find something really cool and fun to make and show.

Question by EncasedDeath   |  last reply

Controlling high amp motors with arduino? Answered

Hi instructablites/instructonians/people of instructables... Despite the fact that i suck at naming things, i need to control 2 6v 3a motors, and i'd prefer to use arduino. the l293d only rates up to 1.2 amps, and i'd like to use as few components as possible. i'm relatively new to this, so please bear with my nooblishness.

Question by dasta   |  last reply

Help wiring an LED array

I'd like to buy some LEDs off ebay and build some LED arrays but I'm confused as to how to wire it. For example, lets say I have 100 watts of LEDs (aka 1 watt x 100 LEDs or 10 watts x 10 LEDs) as an extreme example and each LED has a max voltage of 12 volts. Then lets say I have a power supply that provides 100 watts at 12 volts. How would I wire it? I'm worried that if I hook it up, lots of LEDs will just burn out. Just help me understand what I need to watch out for here. I'm obviously a super novice. Have pity.

Topic by WillE2   |  last reply


Alright i'm converting this old vex system into a rc car and the motor has and idle speed that can be controlled with this small potentiometer and when i turn it so the idle is off when i use it (i use it for steering) and when i use it the idle turns back on and iono what to do any ideas i tried using a resistor but it leaves too little voltage for the motor to turn the steering arm well

Topic by lightpacker   |  last reply

can i use a micro controller to switch audio or will i need to also use relays? Answered

Hi, I'm thinking about making an audio linked house (each room can listen to music playing from another) (for details read my other post) basically all the rooms are going to be linked to a central switcher witch will have a micro prossesor in it, maybe an arduino or pic. my current design uses a whole load of relays connected to the digital pins via a transistor. i was wondering if there was an easier/simpler way to do this, maybe direct onto the micro prossesor?

Question by ljarrald   |  last reply

Adjustable Signal...radio, bluetooth, etc.

I am trying to figure out how to control a device that will be "off" while in the range of a transmitter (short range...under 10ft) and then turn on when it goes beyond the range of the signal. I would also like it to be an adjustable range. I was thinking the device would be "on" constantly as the transmitter tells it not to activate, but once it leaves the signal range it would activate.  Any thoughts? Thank you in advance.

Topic by milkyway312   |  last reply

Detroit-area resources, stores, etc

Hello, fellow Michiganders! *points to palm*I recently learned about Silicon Alley Recyclers, a Warren (10 and Ryan) outfit that takes cast-off computers and stuff (mostly from corporate environments), refurbs the machines, and sells them (cheap). I've taken the opportunity to unload some of my old boat-anchors, and I've picked up some neat hardware too. Are there other similar outfits in the area?A fun place for supplies is Arts and Scraps in Ann Arbor, which carries all sorts of industrial offcuts, recycled whatsits, and nifty thingamabobs. I don't know how else to describe it. I had a few bushels of cellphone parts to get rid of, and A&S; took the keypads and cases off my hands eagerly. (They wouldn't take the PCBs, which I still need to dispose of.)Cranbrook's art school has a directory of metal suppliers in the area, and I've personally been getting stuff from Metal Mart at 13 and Dequindre in Warren, right around the corner. They're cool with small orders, and very laid-back about shopping. After saying hi, they'll generally just ask you to go back and browse until you find what you want. There's a nice rack of scraps and pieces up near the front, which usually has all I need.For electronics parts, ever since K40 on Van Dyke and Michigan Radio (the store, not the broadcasting service) closed I've been going to Abel Electronics in St Clair Shores, and once in a while I'll hit up RS Electronics in Livonia. I need to stop in at Galco Industrial Electronics one of these days, since they're also right around the corner. There's a new Grainger in Madison Heights on Whitcomb (13 1/2 mile) but I've never been in there.Okay, that's my braindump for now. If you know more suppliers, please reply to this post, otherwise start a new thread so this one stays on-topic and info-dense.

Topic by Myself   |  last reply

Is it possible to take the sound out of an alarm clock and still have it to work?

Is it possible to take the sound out of an alarm clock and still have it to work? I was going to make something, and decided it would be vital to have. If it is possible, how would I do it? Thanks

Question by Inmor   |  last reply

Can someone help me plan a solar USB charger(5V)?

I have three solar panels that I would like to use for a solar USB charging kit. I don't know how they should be put together. Two are 5V panels at 100 and 200MA each, and the third is 5.5V I believe at 320MA. The third panel came as part of a kit from Brown Dog Gadgets but I accidentally soldered two points together that weren't supposed to connect (they were too close together :( and the circuit started smoking). I'd like to make something that could charge my iPod touch 4th gen as well as other USB devices.

Question by zyx296   |  last reply

Bot Tips, Requests, Questions, Ideas, Concepts, etc.

Ask robot-related questions, Post robot-related pictures, Share robot concepts Here!

Topic by Win Guy 

substitute for kno3

 ok so kno3( potasium nitrate ) is a 5.1 oxidiser yes?> chlorine is a 5.1 oxidizer so could you substitute kn03 for chlorine when making black powder or will chlorine react badly with the sulphur

Question by milamber   |  last reply

I wish to create a super circuit board if you will, out of pre-existing working boards. How do I do that??

I want to make a system, designed specifically for my needs. I an trying to make a system that detects G loads, accelerometer, force gauge, current speed and altitude. I may add more. But I am wondering if it can be done, and if so, how? I know nothing of circuitry or anything. So help!  

Question by anul20   |  last reply

Cable tester? xlr, jack, phono etc

It looks pretty simple: http://www.studiospares.com/test-gear/studiospares-ultimate-cable-tester/invt/458260/ i was wondering whether anyone could help me with how i would go about building one of these from scratch within a hobby box? i have components (sockets and plugs, veriboard etc) but i've never designed a circuit before so any idea would be great! im thinking two rows of LEDs that match pins 1 to 1, 2 to 2, and 3 to 3 at each end of the cable being tested (maybe 4 and 5 too) refering to tip, ring sleeve on jacks, centre pin and ground sheath on phono, and pins 1, 2, 3 on xlrs. any schematics/idea please! take a look at the link for a better idea. LEDs to indicate shorts and phase switch would be cool too.

Question by jamesjamesjames   |  last reply

Safety of laser cut foamboard (fumes, etc)? Answered

So I cut some elmers 3/16" foam board today on our schools laser cutter- it gave off some nasty fumes but luckily most of it was ventilated out of the cutter. My concern is that inhaling the fumes (or the low-volume fumes i got from whatever smoke was left in the laser cutter), will be pretty bad for you. I dont know how toxic the fumes are from laser cutting foam, but my guess would be pretty bad. I also read somewhere that heating the foam up produces a lot of toxic byproducts, one of them being cyanide... Is this stuff safe to handle? I did feel a bit "foggy" afterwards, and had a slight pain in my chest, but not a lot...Thanks!

Question by astroboy907   |  last reply

i would like to know how to get free GOOD stuff Answered

Stuff like flash drives, computer parts, headphones, joysticks, mice (For computers) keyboards, gamepads, XBOX 360 controllers, etc...

Question by ashannon1   |  last reply

Can anybody list me good Border Printing Solutions?

I've got a project in my school they require a hand written project however we can get the margins printed and printed margins means more marks in our school. The teacher has told us to make the projects on A4 size papers and to draw or print margins to the following specifications: Top: 3.5 cm Bottom: 2 cm Left: 3.5 cm Right: 2 cm I want to know how to print borders following this margins? One More Question: If there is any way to save an image with these borders? Thank You in Advance

Question by adarshnarsaria   |  last reply

does anyone know how?

Does ANYONE know how to make a taser/stun gun WITHOUT the use of a disposable camera??????? even if you have to buy resistors and stuff for it

Question by dasta   |  last reply

How to get this bell to work? Answered

I picked up this bell today at my local junk store for 50 cents. I hooked up a 9 volt to it and it rang once. Is there a simple way to make it ring a lot when i flip the switch? Thanks

Question by schoonovermr   |  last reply

Any good projects with DC motors, LEDs, etc.?

Awesome projects like the DC Generatro by using a motor then spin the shaft for electricity or something way cooler!

Question by robert0joe   |  last reply

Uses for GE 12AY7 tubes? Amplifier, Preamp etc? Answered

I found a box full of brand new GE 12AY7 electronic tubes in my basement. I dont have any experience with tubes but i know alot about electronics. Can i make an amplifier circuit or something with these? Schematics or any information on them would help. Thanks.

Question by JasonYMN   |  last reply

Using potentiometer to dim Lights, controlling volume etc.?

I Live in a suburb of India I have found a radio shack here. I have managed to found only one kind of rotary potentiometer there ie, A10K(Brand: I-MAXX Made in Taiwan) with 3 pins on the side and 2 pins at the bottom... (something like the pic however instead of the blue bottom I have sea green). Well how to embed it in an led circuit or speaker circuit to dim the light or control the volume of a speaker respectively..... Thanks....

Question by adarshnarsaria   |  last reply

Bluetooth relay to control water pumps, lights, etc

Is there an inexpensive way to control a water pump or light or other device needing only to turn on and off by using bluetooth?  What I see in my mind....is either a computer or tablet having a bluetooth sender - either built in or a usb dongle...and, for example, an aquarium water pump with a 3.7 or 5 v relay to turn it on and off coupled with a bluetooth receiver.  The computer or tablet would have an app to control the device - with timer software.  I have seen bt dongles that can be purchased for as little as $2 in bulk...low voltage relays also for cheap.  I envision a "box" about 1cm by 3 cm by 3 cm that a pump or a light could be wired into and costing about $US 5 to make.

Topic by haopengyou   |  last reply

Check CPU temp, fan speed, etc. with a batch file?

I want to check some things like my CPU temperature, fan speed, and other things like that. However, I can't install programs like CPU-Z, or SpeedFan(Don't ask why, I just can't). I've heard of some people doing it through a batch file. Can someone please tell me how?

Topic by metrogdor22 


Im having my graduation this year in Australia and my group is in-charge of the decoration ideas, i want matching colors, im thinking gold,black & silver should be the theme colors, Anyone have any ideas??  PS: if you can also write what decorations i should add like balloons.

Question by iraqiiz   |  last reply

EAGLE CAD: how to create a schematic's description/author/etc.?

Hey, I always wondered how I could make EAGLE auto-generate something like what is shown on the image bellow. I've seen so many just like that one... Is that made "by hand" or is it auto-generated? How can I auto-generate it? Thanks! :)

Question by pedrotome   |  last reply

How do I know if a transistor is a 2N4401 or a 2N3904, etc? Answered

Good day. I'm a newbie scavenger, and I scavenge parts since I don't have enough money to buy new parts. I want to know if the transistor i found is a 2N4401 or a 2N3904 or another? I can't find it in the Internet. One thing I know is that it's an NPN transistor. I also noticed some numbers on the flat side of the transistor. Does it help in determining the transistor? Thanks in advance to those who will answer. :D

Question by CarlGemarino   |  last reply

I have Fingerprint module from old sony laptop... Can anyone help me to get the pin breakouts ?

This fingerprint reader module is from hannstar-j  m.b. which I extracted from a old sony laptop (I dont have SN or model no).  This module has weird type of 10 pin socket connector. Can any1 tell me the pinouts for it....? I want to connect in to my new laptop via USB or PS2. I tried to connect it with same type of connector from BT module but it didn't connect. Please help....

Question by shreyask9   |  last reply

How much is my PC worth?

I don't think I would actually decide to change PCs, but if I were to sell it let's say on Craigslist, what would be a good price? It's an HP Pavilion Slimline. Dual Core 2.50GHz Intel Pentium E5200. 800MHz System Bus 2MB L2 Cache. Running Windows 7 Home Edition 64-bit with 3GB RAM and 286GB Hard Drive. An average HP keyboard and mouse both wired. No camera. CD R CD RW drive. 3 USB ports broken on back but 4 port Rocketfish USB Hub. A Sapphire Radeon HD 7750 GPU at 1GB. If that's not enough info just let me know. I hope it is at least maybe $350! Last question, is $699.99 a good price for a HPE h8-1360t? Its 3.4GHz and a 2GB NVidia GeForce GT630 with 8GB RAM and 1T hard drive, just to sum it up.

Question by knexpert1700   |  last reply

Why is my HDMI cable not playing audio?

I've kept my HDMI cable plugged into my AMD Radeon 7750 with updated graphics drives and it does display video. I have checked and it is enabled I have the software but it simply says that it is not plugged in. Everything is tight, and ready as it was before (Working too) so any problem you could think of? I think it might be hardware problems, my PC is from 2009 and I am afraid my system32 folder is messed up :[. The cable isn't damaged except it could be the small end that converts the cable into mini HDMI for my GPU. Please reply! :)

Question by knexpert1700   |  last reply

How do you make LEDs with low pass... etc filters? Answered

 Ive made the LEDs that are synced to my music but now i want to have some blinking to the bass, others the mid and then the treble.

Question by Max4501   |  last reply

TWIT.TV: Make Mag, Maker Faire, Boing Boing, etc discussed.

The first podcast of the week is the last word in tech. Join Leo Laporte, Patrick Norton, John C. Dvorak, and other tech luminaries in a roundtable discussion of the latest trends in high tech. Winner of "People's Choice Podcast" and "Best Technology Podcast" in the 2005 People's Choice Podcast Awards. Released every Sunday at midnight Pacific.The pod cast is at TWIT.TV - link - And the "death of.....(newspapers, radio, etc.)

Topic by Goodhart   |  last reply

Sample Arduino pgm to emit robotic noises (squeaks, beeps,etc)?

I saw an arduino program online within the last year for emitting robotic sounds (beeps, squeaks, etc.--not words) from a piezospeaker--but forgot to save it--and can't find it again.  Has anyone seen this--or even a similar Basic Stamp program?  And if so, could you send a link?  Thanks!

Question by RoboBear   |  last reply

Where is the best to source electronic components, boards, development tools etc?

I am interested in robotics and electronics and need a source of components that will allow me to complete projects with a single order. thanks in advance

Question by rnicholls1   |  last reply

Connect a cordless phone to a computer and use over Skype/Google, etc

Has anyone come across a way to connect a cordless phone to your computer and use to talk over Skype, Google Talk, or similar?

Topic by awascholl   |  last reply

What is the solution of 'E' Waste (Electronic Waste like CDs etc)?

I want to reuse old CD's, Floppy & other type of Electronic Waste. Because they pollute our environment, these items are degradable. We have to save our Environment, Our People & at last Our Earth. Plz help me to do this. Thanks

Question by kaiserking2002   |  last reply

Calculate DC motor specifications (torque power etc) for electric vehicle?

Dear Sir/Madam, I want to make an electric car like as shown in figure below., with a DC motor. assume no inclination, road is plain surface. please explain all calculation with formulas. Thanking in anticipation following is the basic known parameters: Total mass of car(including rider and everything) = 170kg initial velocity of car = 0 (still car stop) max velocity = 30 km per hour time to reach max velocity = 1 minute = 60 seconds radius of tyre = 8 inch please tell me how could i find the following parameters to find accurate DC motor for my car: how to calculate force needed by my car? how to calculate torque needed by my car? how to calculate speed RPM of a motor needed by my car? how to calculate power (watt) of motor needed by my car?

Question by amazn1   |  last reply

computer fan mod ???? will reversing fan direction cause overheating etc?

I have an older computer, and i was thinking instead of buying a new fan and installing as an out-take, what if i just reverse the one fan i have to pull air out, instead of running two fans.. would this cause overheating or any other problems, or would it provide better airflow in a "vacuum" effect for the computer. i only have the one fan in it right now.

Question by bradburyk   |  last reply

Can you Record Directly to ipod from camcorder, camera, etc ??

Hello everyone i was wondering is it possible to record direct from ipod to a camera or a camcorder. I have seen the 100 dollar devices buy thats really expensive and kind of stupid when it probably only has to do with 3 wires. so if there is anyway please tell me if not tell me. More importantly if there is a way MAKE AN INSCRUTABLE ON IT!!!! i havent seen one anywhere on how to do this, metacafe, youtube, google,and rotteneggs From Homepie64

Topic by HOMEPIE64   |  last reply

Raspberry Pi (or similar) to control LED strip via commands etc?

I'm trying to achieve something which I would imagine isn't all that difficult. Basically, I would like something like a Raspberry Pi to connect to a set of LED strips.  Then via Bluetooth or WiFi I could send a command to turn them off or on from my phone. Thats it. I'd also like the same unit to power a little OLED or LCD screen that displays the time if possible. Does anyone know exactly what kit i'm going to need.  THere seems to be hundreds of different ways of doing this and I've got no idea where to start.

Topic by K20Evo 

How do watts, watt-hours, etc. relate to voltage, current, and resistance? Answered

I've worked with 12v and 5v a fair amount, and I've got a good understanding of Ohms law, series and parallel circuits, etc. But, I get a little sketchy when it comes to wattage ratings, KWHs, etc. and their relation to (now) my electric bill, (but hopefully soon to my off-grid, alternate power sources/power banks) and what I can handle as far as power consumption, etc. Any theory, links, book suggestions, practical examples, etc. will be GREATLY appreciated. Thanks so much in advance, everyone!

Question by sykotik   |  last reply

This arduino code does not work as expected, any help? there seems to be an issue with the digitalWrite function. Answered

Recently, I wanted to make a laboratory grade linear semi-precision power supply using an Arduino, LCD, some comparators, and MOSFETs. Idealistically, I want measurements to be 3 significant figures of precision (0.1% accuracy @ 30V), voltages as high as 30V, and max current of 10A. The power supply is most likely going to be just a single regulated output, maybe if I feel lucky I will make 2 regulated outputs once I get the darn Arduino code to work. The Arduino's job is to simply set and read the output voltage, and is not part of the control loop. That is what the comparators are for. (I learned the hard way that using the Arduino within the control loop just results in parasitic oscillations because the Arduino is a clocked device and can only self correct at timed intervals.) Anyway, below is the code. I made explanations of all portions of it as clear as possible, and I also give the wiring used for the LCD, 4 buttons, and analog inputs used to set and read the voltage and current. However, the issue arises when I upload the code, the setVI button does not work unless I press both it and the RS button at same time. I made the many of the integers display in the serial output to diagnosing easier hopefully. I can see the setVI integer and my dudd integer only goes HIGH when  either it and the RS buttons are pressed simultaneously, or when the RS butten is held down for a long enough time. However, as far as I am aware, nowhere in the code do I manipulate that code so setVI goes HIGH dependant on other buttons, so I am bewildered by this parasitic phenomenon. Is my Arduino MEGA broken? I had a similar problem in the past, where I had multiple analogRead statements It strangely seemed to factor in the outputs of other input pins. Anyway, here is the code. Maybe someone could upload it and tell me if it functions properly on their arduino? That would help me determine if it is indeed a software issue. (p.s. I use an Arduino ripoff called the Funduino, but it is not broken in any way, I don't think?) Any and all help would be greatly appreciated, thank you in advance, -Max-. p.s. To make the code below legible, please copy/paste it in an IDE or in notepad and convert it into a monospaced font, it will make it very easy to follow. //---------------------------------------------------------------------------------------------------------------// /* Arduino Software for lab power supply. Wireing guide:        **Wiring for 16x2 LCD:**       * LCD RS pin to digital pin 12       * LCD Enable pin to digital pin 11       * LCD D4 pin to digital pin 5       * LCD D5 pin to digital pin 4       * LCD D6 pin to digital pin 3       * LCD D7 pin to digital pin 2       * LCD R/W pin to ground       * 10K resistor:       * ends to +5V and ground       * wiper to LCD VO pin (pin 3)    **Wiring for buttons:**       * RS       button to pin 6  (as a digital input) -- Switches from reading read current/voltage values to setting those values, and Vice Versa.       * VIselect button to pin 7 (as a digital input) -- Switches to the 'set' mode and flips from setting the voltage to setting the current.       * UP       button to pin 8  (as a digital input) -- Increments the voltage or current up when in the 'set' mode.       * DOWN     button to pin 9  (as a digital input) -- Increments the voltage or current up when in the 'set' mode.    **Analog inputs/outputs:**       *A0   -- Measures a potential of a resistor divider that can output a voltage of 0-5V based on the 0-30V output this PSW capable of.       *A1   -- Measures the current flow through a resistor to measure current. (Some reason there seems to be a pulldown resistor on this pin, so the voltage does not float.)       *Vout -- This will be later implemented if I get a DAC, for the increased resolution. (1024 is just not enough in my opinion. At least 12 bits)       *Aout -- This will be later implemented if I get a DAC, for the increased resolution. (1024 is just not enough in my opinion. At least 12 bits) */ int UP    = 0;      // These are the 2 buttons used to incrementally int DOWN  = 0;      // step up or down the voltage on the output int RS = 0;         // These 2 buttons tell the LCD to either read out the voltage on the analog pins. (I plan to change this so it reads from a 14 bit ADC and writes int setVI = 0;      // the voltage output through a 14 (or 16 bit) bit ADC. I need 3 significant digits, or at least 0.1% accuracy. int dudd = 0;       // this dudd (dummy variable) is just here to prove that digitaslreading pin 7 works very weird! Any help on this? int preRS = 1;      // Anything with a "Pre" before it is simply what said integer/variable on the last loop. I use these to prevent a parasitic int presetVI = 1;   // oscillation of states that they control, so when a button is pressed, it will not jump between 2 states every cycle. int preUP    = 0; int preDOWN  = 0; float Aset = 0.00;  // I need these to be "floated" so I can set the exact value of these to 3 significant digits. float Vset = 0.00;  // Aset and Vset define what the output voltage *should* be, and are defined with the UP/DOWN buttons. int VIselection = 1;// this variable will invert when Aset button is pressed. Similar to the IVselect, this number will also invert int READorSET = 1;  // Bset button is pressed. This allows the mode to be changed from SET mode or the READ output mode, thus allowing                     // one to compare the output voltage and current to the set value, as well as set the output voltage and current. #include LiquidCrystal lcd(12, 11, 5, 4, 3, 2);// initialize the library with the numbers of the interface pins void setup() { //-------------------------// I tried making diagnosting this thing easier by making all the important data availible in the serial monitor.   lcd.begin(16, 2);   Serial.begin(9600);   Serial.print("INPUTS         RS:           READorSET:       setVI & dudd:        VIselection:");   Serial.println(""); } void loop() {   float V = (30.00*analogRead(A0))/1024.00;   //These are what I use to read the voltage output of my power supply. I will have a voltage divider on the output,   float A = (15.000*analogRead(A1))/1024.000; //to limit the voltage range from 0-30V to 0-5V. Same concept goes for the current measurement.   int dudd  = digitalRead(7);//   RS    = digitalRead(6);//RS stands for "Read/set"   setVI = digitalRead(7);//VI is stands for "Current/Voltage set"   UP    = digitalRead(8);//UP is simply a button used to set voltage & current   DOWN  = digitalRead(9);//DOWN is simply a button used to set voltage & current     if(presetVI == LOW && setVI == HIGH){VIselection = -VIselection;}   if(preRS    == LOW && RS    == HIGH){READorSET   =   -READorSET;}     Serial.print("\t        ");  // prints an inital space.     Serial.print(RS);            // prints the RS reading. It should be '1' when pin 7 is HIGH.     Serial.print("\t        ");     Serial.print(READorSET);     // prints the READorSET reading. This should only change when the RS button is pressed.     Serial.print("\t        ");     Serial.print(setVI);         // prints the setVI reading. It should be '1' when pin 7 is HIGH.     Serial.print("\t");     Serial.print(dudd);         // prints the setVI reading. It should be '1' when pin 7 is HIGH.     Serial.print("\t        ");     Serial.println(VIselection); // prints the VIselection reading. This should only change when the setVI button is pressed.         //if(presetVI == LOW && setVI == HIGH && READorSET == 1) {READorSET = -READorSET; VIselect = -VIselect;}      // This line of code just makes so that when I need to go from the voltage read screen to      // the set mode, I can just press the VIselect button. It just makes things more intuitive, but could be      // causeing the error, so I nulled it. I also nulled it out another portion that will keep the voltage or      // current setting the same when using the VI buttton to select the set mode. (otherwise it has to be      // double pressed to return to, say, the current setting, if that is where you left off.)   if(UP == HIGH && DOWN == LOW && VIselection == -1){if(Aset <= 10.00) {Aset += 0.05;}}   if(DOWN == HIGH && UP == LOW && VIselection == -1){if(Aset >= 0.10) {Aset -= 0.05;}}     if(UP == HIGH && DOWN == LOW && VIselection == 1) {if(Vset <= 30.00) {Vset += 0.05;}}   if(DOWN == HIGH && UP == LOW && VIselection == 1) {if(Vset >= 0.05) {Vset -= 0.05;}}     if (RS == HIGH){digitalWrite(13, 1);}   if (RS == LOW){digitalWrite(13, 0);} //============================================================================================================//   if (READorSET == 1){      //this is the defualt screen, and shows the output voltage and current.     lcd.clear();              lcd.setCursor(0, 0);     lcd.print("VOLTAGE:");     lcd.setCursor(0, 1);     lcd.print("CURRENT:");     lcd.setCursor(10, 0);     lcd.print(V);     lcd.setCursor(15, 0);     lcd.print("V");     lcd.setCursor(10, 1);     lcd.print(A);     lcd.setCursor(15, 1);     lcd.print("A");   }   if (READorSET == -1){   // This is the portion of the code allowing me to set the current and voltage     lcd.clear();          // using the up/down buttons.       if (VIselection == -1){         lcd.setCursor(0, 0);         lcd.print("  SET CURRENT:");         lcd.setCursor(5, 1);         lcd.print(Aset);         lcd.print("A ");       }       if(VIselection == 1){         lcd.setCursor(0, 0);         lcd.print("  SET VOLTAGE:");         lcd.setCursor(5, 1);         lcd.print(Vset);         lcd.print("V ");       }   } //============================================================================================================//   presetVI = setVI; // At the end of each loop, the current variable settings that were used are set equal   preRS = RS;       // to the 'pre' versions of the code. This allows me to basically measure the when                     // the button is initially pressed, and/or released. Using this method with the delay()                     // function, however, is a bit buggy, but I did have it working well enough before. If you                     // tap the button too quickly. You almost have to hold it for a split second. If you                     // know a better, simpler way of doing this, please tell me, thank you.                       delay(80);        // The delay helps stabilize the reading on the LCD, but if it is too large, than the                     // refresh rate suffers, and the buttons respond slower. However, setting too low will                     // cause the reading on the display to change so rapidly, it is illegible. }

Question by -max-   |  last reply

Enlist all the sites like instructables containing DIY stuff n all?

Enlist all the sties which contain DIY stuff, experiments etc etc.

Question by electrosam   |  last reply