Arduino + Processing + Servo control

Hello there! Im new to processing and i need some help. I have written some code that works but badly.  SImply all its meant to do is take the my keyboard input ( with proccessing) and based off that turn a servo left or right. How ever i encounter a weird problem. For the servo to turn i have to press each key on the keyboard twice.... and also when i hit 'w' there is a big delay of about 2 seconds for no reason... The processing code: import processing.serial.*; Serial myPort; void setup() {   myPort = new Serial(this, Serial.list()[4], 9600);   println(Serial.list()); } void draw() { } void keyPressed() {   switch (key) {   case 'w':     myPort.write('1');     break;   case 'p':     myPort.write('2');     break;   default:     myPort.write('0');   } } The arduino code: #include Servo myServo; int ledPin = 13; void setup(){   Serial.begin(9600);   pinMode(ledPin, OUTPUT);   myServo.attach(9);   myServo.write(0); } void loop(){   int val;     val = - '0';   while (Serial.available() == 0);   if (val == 1){     for (int i ; i < 180; i ++){       myServo.write(i);           }   }   if (val == 2){     for (int i ; i < 180; i--){       myServo.write(i);     }   } }

Posted by lelegriccioli 3 years ago

Arduino servos move to music

Hi, so I'm new to arduino and I'm wanting to link arduino to processing. I then want to be able to make servos move to the beat of music that i have loaded on to processing using the computer as a network but I can't seem to find much info anywhere else and was hoping that someone could enlighten me on the process that i should be taking or able to help in anyway would be much appreciated. Thanks  

Posted by TianL4 2 years ago

Why are the videos on my published instructables taking so long to process?

I have various published instructables that have videos which are taking very long to publish? It is doing it on this one: and other various ones. How can I get it to process faster?

Posted by ajensen19 4 years ago

graphic display on lcd

Hello I used a processing sketch that shows a graphic form of information recieved from a pulse sensor. I would like to take that information and display it on an lcd screen. I don't know how to take that data and send it out of processing and into the lcd, so I could really use some help! thanks

Posted by Noaber 1 year ago

Arduino-powered ball balance machine

This wood panel has the ability to move a ball anywhere it wants thanks to Arduino, servos, and processing. If the noise could be cut down this would make for a very cool installation. Origamata via Make

Posted by fungus amungus 8 years ago

Glitch movie with accelerometer

Hello all! I'm making a chair that is once seated, it distorts/glitches the movie playing. Anyone knows if there's similar projects or tutorials I can follow? I got my parts ready and at the moment but I am lost as to how to start.  Help, advices, links are all appreciated! 

Posted by mtoooooo 3 years ago

Streaming a video with a 20 minute delay?

I'm working on a project where I'd like to continuously record video from a camera and play it back on a projector, but the playback should have a 20 minute delay from the recording. Any thoughts on which tools to use? I'm considering writing something in OpenGL to take video input and play it back, but I suspect there may be an easier way. Thanks!

Posted by kynite 5 years ago

A kind request: Google Science fair vote

I recently entered my Science Fair project in the Google Science Fair, an international science competition in which entrants can build, research, discover etc. anything they want to. For my entry, I researched on how prosthetic limbs can be controlled by thought alone and found that much of the mathematical analysis of the brainwave data had to be improved upon in order to make such a technology usable. Here is a brief synopsis, in case you were interested: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- My project is, at its most general level, based upon the idea of the brain-computer interface.In this sense of the definition, anything we use to interact with machines is a brain-computer interface, including our fingers. However, amputees often face difficulties after the loss of such a vital method of interaction. Through research, I found that a current medical device, the Electroencephalograph (EEG) could be implemented as a direct brain-machine interface; in other inputs on a computer (such as a cursor) could potentially be operated by thought alone. However, I also learned that, although EEG technology has been in existence since circa 1920, it still suffers from the age-old problems of signal filtration and desired feature extraction. This means that current signal processing algorithms are not able to interpret the electrical signals exhibited by neuronal synapses very efficiently, thus making such an interface wholly impractical and inaccurate. My project sought to rectify this through the creation of custom signal processing scenarios that utilized new algorithms; specifically, the use of Linear Discriminant Analysis and Vector quantization compression/extraction methods for enhanced noise filtration and the removal of known artifacts (sources of electricity other than the brain, such as muscles). However, I decided it was not enough to run software simulations; to determine its true real-world applicability, I used a 14- channel EEG neuroheadset to gather electrical data from my own brain. I then built a prototype robotic arm with an onboard processor that would translate signals from the computer. Finally, I used the programs I created to "decipher" the incoming brainwave signals, and send corresponding messages to the robotic limb. I concluded that, by using my programs to perform the signal processing, I was able to increase the accuracy of detected brainwave patterns by about 16%. Although this may not seem like much, the brain processes hundreds of thousands of ideas simultaneously, and recognizing patterns requires a great deal of processing effort on the part of the computer. Finally, I reached an accuracy of about 91.35% using the programs I created. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Further in-depth details can be seen here: Recently, after submitting my project, I was notified that I was one of the 60 semifinalists world-wide; as part of the judging process, there is also an award called the "People's Choice Award." Essentially, the public goes online and votes once in each of the 3 age groups (13-14, 15-16, 17-18) for the project they believe is the best. I am kindly asking if you would consider voting for my project for this award; I believe this project holds many potential applications in the real world other than prosthetics alone; such technology could be effectively utilized by patients with paraplegia, paralysis, or even polio. The voting process is simple: 1. Go the Google Science Fair Voting website: (for my project) 2. Click the "vote" button in the upper right-hand corner Again, thank you for your time and consideration of my project, Anand S

Posted by tech industries 7 years ago

email association process

I do not know how to associate a email to Instructables. Can or would someone kindly direct me to the process instructions. much appreciated thanks

Posted by bgunville 1 year ago

Statistical Process Control

Is there any interest in Statistical Process Control? I posted one instructable about it: I am considering an instructable to measure the quality of resistors. Do they really hold 5% tolerance? The test is simpler than the test in my last instructable, and I would get deeper into the maths.

Posted by JRV31 3 years ago

Graphical User Interface Library for Physical Computing in Processing

Visit our blog: The subject of physical computing, especially in the field of robotics, is a fascinating area that has already begun its triumphant in universities, schools and hobby applications and is developing with impressive speed. It is highly interesting that Pyhsical Computing and Robotics, more than any other area, can merge many different areas (engineering, design, psychology, biology and many other areas). Our target groups are mainly users with robotic and physical computing affinity: engineering, programmers, mechatronics engineers, product designers, interaction designers, communication designers, robotics, interface designers, developers, electronic engineers and artists. There are people who want to monitor and control the input and output of their system without major effort in which they rely on an interface library. Robot experiment sets are increasingly being used in short-term projects in schools and universities to provide basic knowledge on physical computing. Our analysis of current sets shows us that existing features don’t cover all aspects of robotics. The aspect that has been neglected so far according to our research, is the controlling and monitoring of experimental physical computing projects through a graphical interface. Visit our blog:

Posted by faydemir 4 years ago

Post-It animation shows creative process

Or the stalling of the creative process. This animation is an ode to trying to get things done for a deadline and getting a little distracted along the way. Enjoy. via Geekologie

Posted by fungus amungus 9 years ago

Profile Update Process

How can screen name be changed or account deleted? Please help. Happy holidays!

Posted by pucho 6 years ago

Dual HDMI Processing

I have an idea for a project that needs to process 2 hdmi inputs in real time, and 1 hdmi output. What kind of processing power would I need for this? I don't think an arduino would be able to handle it, but would a raspberry pi? Or should I be looking at like a mobile dual-core or something? I'm trying to keep it in a small form factor and have it the least amount of lag possible. Thanks, -Nikon

Posted by evillordnikon 3 years ago

Laser etching photos on wood

I am using an epilog 40 watt laser to etch photos of animals on 4 x 6 pieces of wood such as cherry, maple, and bamboo. In the final product the image lacks luster and the "wow" look I am wanting.  If anyone had advice as to improving the processing and post processing, please let me know.  If I need to apply a coating in post processing, please recommend one.  I tried Olde English but wicking became an issue and the image became too dark.   Any advice will be appreciated!

Posted by mjones0731 8 months ago

Image Processing Tutorial : What you do for your images?

Image Processing Tutorial : What you do for your images? Are you in possession of images you want to convert in to digital form? Or simply you would like to perform some operations to enhance their outlook?  Similarly if you just want to extract some useful information from them, all you need is a photo house that carries out image processing. This is where you can have a photo you want manipulated made  the input as you give  specified characteristics you want included. To do image processing, you may have to apply a set of signals that can give you   the desired results. There are three distinct steps to follow in any image processing. They include: Importing images using a scanner or a photography Analyzing and manipulating images using enhancement and compression methods Altering the results we obtain at the output level There are plenty of reasons for carrying out image processing; the reasons and purposes are as follows: So that you can easily observe the parts that are not visible Restoration and sharpening the images for the purpose of making them look better Image retrieval – if you are interested in any particular image, you can have it retrieved. Identify the number of elements making up a pattern Distinguish the object and its image. There are   two methods that can be used in processing any images. Digital Analog If you are analyzing hard copies and printouts, this is what is referred to as visual techniques.  It involves use of various fundamentals and image processing techniques. You need to make use of technicians who are vast in image processing. They may use visual techniques and apply a combination of individual knowledge and experience in image processing. If your pictures are in a digital form, you may employ digital processing techniques to manipulate those using computers. Images collected from sensors and satellites can be manipulated to get the real images or data.  To do this, you need experts who can take the images collected into a number of phases before coming up with the required images.  They must have the latest skills to help them get over flaws and get original information. The data or images collected may be taken through the following phases; Pre-processing, Information extraction, Enhancement and display. Other than image processing service, you may need team   to deal with computer graphics. This is where any desired image is manually made using physical models. It could include lighting, environment and natural scenes. This graphics can be used in animated movies, computer vision and plays. It can be used to create moving images to depict a story. Generally, imaging is key in image processing. The designers should consider a number of factors including; Human visual – where the designers consider the psychophysical process that takes place in human beings as they make sense out of information they see and receive. Lastly in all these, ensure that you get a clipping path company that is vast in imaging and which can work hand in hand with you to ensure that you get the required results.

Posted by rustam3g 3 years ago


I am in the process of making a camper like this but for a bike!

Posted by Zaphod Beeblebrox 8 years ago

Let's Make Soap - A Cold Process Soapmaking Tutorial

I get a lot of curious people downtown who want to know how to make old fashioned, cold process soap. So for anyone who is interested in what making soap is all about, here's an overview of the soapmaking process. It is not meant to be used as a tutorial. Because of the many dangers associated with soapmaking due to the use of lye and the plethora of information to be had, I recommend that you carefully research the process before starting out on your own. Details on where to obtain additional information will be included within this article.Soapmaking involves a chemical process in which sodium hydroxide (lye) reacts with oils to make soap. This process is called saponification. Because this process requires the use of lye, important safety precautions must be taken. Rubber gloves and safety glasses should be worn during the soapmaking process, and vinegar, which neutralizes the lye, should be kept on hand in case of an accidental spill or burn. In addition to the necessary safety equipment needed for the journey into making soap, there is other required equipment you'll need to get started. First and foremost you will need to acquire lye. Because without lye, there is no soap. You should be able to find lye in the plumbing section of your hardware store. I buy Roebic brand at Lowe's. The brand doesn't really matter, but it must say that it is 100% sodium hydroxide. You'll also need a large pot for mixing the soap. This can be any type of pot you like - I use my hubby's old beer making pot - as long as the pot is not aluminum. Lye reacts badly with aluminum so remember to never mix the two. You'll also need an accurate scale, I use a digital postal scale I purchased at Staples. And, you'll need a thermometer or two to measure the temps of your oils and lye solution as well. Additionally, you'll find that a stick blender is your best friend in making soap, and then of course there are the molds, soapmaking oils, and distilled water to be mixed with the lye. Read the rest of this tutorial.

Posted by soapdeli 9 years ago

need advice for process control software

I am new to process control software. We are working on a solar steam project that will require some form of automated control. We need suggestions for software (preferably open source and will run on a windows pc) that will handle temp and pressure data aquisition. The software should also be able to affect small electric motors based on the data parameters. Also any recommendations for temp and pressure (psi) sensors would be greatly appreciated. Thanks for any suggestions

Posted by culinadge 10 years ago

Download PDF Documents Process - Removal of middle Stage page

To make the Download page more streamlined, would it be possible to speed the process up and remove the page that appears before the actual PDF document page come up. As to be able to direct Download would be advantageous. I seem to always have to click twice before the document appears on my desktop. Great site though!! Thank you!! i.e.

Posted by DuncanClark 3 years ago

question about judging process

I entered the art of sound contest, i am wondering exactly how the judging works, i cannot find any info on this. i am also wondering if for some reason my entry did not qualify? any help would be appreciated, thanks, Kendall

Posted by kendallickes 9 years ago

How do you claim prizes?

How do you claim an instructable prize. What is the process, i filled in the form with address and stuff  (exept for state, since I'm in england) but it said it will be processed. What comes after that?

Posted by When in doubt, duct tape! 6 years ago

control dc motor using pid processing and arduino

Hi forum I done code for pid to control dc motor speed but the output value gives 0 or constant value 250 and the set point is still same 100.Hereby I attach the PID code.

Posted by satya_82 4 years ago

Using Plasma Arcs to Deal with Trash

"A Florida county plans to build a facility to get rid of their landfills, generate electricity and produce construction material, all using a process called plasma gasification which vaporizes garbage at temperatures hotter than the surface of the sun. The $425 million facility expected to be built in St. Lucie County will use plasma arcs to turn garbage into gas and rock-like material. It will be the first municipal plasma waste processing facility in the united states, and the largest in the world. Expected to be completed within 2 years, the 100,000 square food facility will process 3,000 tons of waste per day. Fed not only with waste being produced currently, the facility will also begin to process the waste already in the county landfill. Estimates predict that the entire volume of the existing landfill, 4.3 million tons of trash collected since 1978, will be processed within 18 years."Read More...It almost seems too good to be true, what do you think?

Posted by Weissensteinburg 10 years ago

Prize Claim Process

I am a little confused about the prize claim process.  I got a PM with a link, went to the link and filled out the form and clicked "accept."  But it was kind of weird that I didn't get any acknowledgement that I submitted the form.  Also, for an Instructables prize pack prize (which includes a shirt) shouldn't they ask for a shirt size?  When/where/how do they do that?  I guess I am just worried that maybe I am missing something. Or that the form isn't being submitted properly. Or maybe I'm just being impatient.

Posted by The Papier Boy 7 years ago

WIP Halloween Demon Mask

I'm getting close to being done with this years Halloween mask. A nifty demon skull!  Thought I'd post the WIP album which is a semi tutorial on the process here. Let me know if you've got any questions on the process so

Posted by goosezilla 8 years ago

Detecting digital screens (PC and Mobile)

Hi everyone, I have a project which is based on detecting the screen of PC or Mobile. Are there any common properties in digital screens? what is the best sensor or the best way to detect digital screens? I'm doing image processing, but I want to add quality by using sensors.  Thanks in advance

Posted by RashadS5 1 year ago

Help! How to code this (START SWITCH)

Sir/Mam,    I have a problem on coding in my start button, when i pushed the start button, the process still working and need to finish its task given on the code then OFF, The Problem is: the problem is, when i pressed the start the button(ON), the process starts, but when i press the start button (OFF) , the Arduino finishes the entire code before it turns off. what i need is when i turn off the switch, the entire microcontroller(ARDUINO) is turn off, and when i start again the start button(ON), the process starts from the top.

Posted by Khel.Limbaro 3 years ago

Show Me Your Epic Fail Projects!

Any good maker will tell you to accept and embrace the process of iteration. And a natural product of that iterative process is failure. You learn a lot by trying something, being less-than-successful, and then attempting it again. It's the act of picking yourself up and trying again that helps dissolve the fear associated with failure. I'm interested to see your most epic failures! Share photos, videos, and stories of your fails from project builds: Slumping, cracking, burned, melted, misshapen… it's all part of the learning process. Can't wait to see how you messed up. :)

Posted by xxlauraxx 3 years ago

ghetto programming

How do i program a avr micro processer with perl? and where will i get guides on how to do this?

Posted by cris1133 10 years ago

DIYers and makers, answer please!

I'm currently doing an internship in a portuguese company, whitesmith and I'm developing a tool that will hopefully help makers and DIYers and make your life way easier when you're starting to create something new and need a whole lot of materials. What I'd like you to tell me is what is the most boring step on the process of building something new. Would you consider searching for every single material in different websites/online stores and comparing prices the most boring step of that process? If so, would you like to have a tool that would do that price comparison for you? If not, what do you think is the most boring step? Thanks in advance :)

Posted by MarianaM56 1 year ago

The Etch-o-matic process

I found this website for the etch-o-matic and thought how cool. I also thought that this has to be something really really easy to make myself if I knew a little more about it. So I'm wondering if anyone knows how to build one of these or if there is already an instructable that for this that I just couldn't find, or if someone knows of another source for further info. If anyone even just knows the generic term for this process that would be a help.I'm also wondering about the stencil, is there another, more generic product out there that does the same thing? The development is no problem because I have an old blueprint machine that will do that part nicely. thanks a millionC

Posted by astro347 9 years ago

What is the exact topic of the "mind for design" contest?

It is about digitally designed works or about creations that help the digital design process?

Posted by giuliom95 3 years ago

IIP !!!!!! (Instructable In Progress)

I'm in the process of constructing a new instructable! Check It OUT!!!!!!!!!!!!!!!!!!! BTW its a Pirates of the caribbean diorama

Posted by KANahas 10 years ago

macePod - The procession project

Hi Art+Tech lovers Is it possible to track a simple object and calculate it's distance with an Arduino + (Arduino-)camera. I would use a simple tele lens so the distance between the camera and the object can range between 0.5 and 10 meters. The camera can be mounted on 2 servo motors for pan-tilt movement. Everything sits on top of a 2m pole, carried by a person.  And best wishes for 2016! Philippe

Posted by sysArt 2 years ago

silver casting

Has anyone ever cast silver into cuttlefish bones/shell. Ihave a wax original which i dont want to lose in the lost wax process.

Posted by maninamousesuit 10 years ago

Legitimate botnet (zombie) farming?

If this doesn't exist yet, I have no doubt whatsoever that it's not far away. Is there a company doing legitimate zombie farming? ie, a cloud of computers running a local server which process data from a centralised distributor? People do it illegally, selling processing power from trojan infected machines, but is anyone doing it as a legal business? Imagine you could download a small application which sits in memory and draws off a certain percentage of your CPUs runtime, depending on the machine's usage. This processing power would form part of a cloud sourced supercomputer, with runtime sold to whoever. And say you were paid maybe a couple of dollars per 24 hours of processing, depending on CPU speed. Leaving a couple computers on 24 7 would add up to a not inconsiderable sum per month. You could salvage some old machines and leave them going in the basement. I've worked at animation studios, as an example, and for sure they would be keen to, rather than intermittently hire a room full of fast machines as a render farm, outsource it to a cloud. SETI did it. Like I say, if this isn't already being done, it will be soon.

Posted by SolarFlower_org 8 years ago

Instructable on electroplated circuit boards?

I managed to plate a copper trace onto piece of acryllic today, to test out a process for easily and cheaply making (and possibly editing/repairing) custom PCBs. The adhesion appears to be good for surface preparation used so far, and a nice thick track has formed. So, would it be worth uploading an instructable once the process has been refined a little (or enough to make simple boards properly)? Any questions, feedback or comments would be appreciated.

Posted by The Skinnerz 6 years ago

Comment Submit Process can be Better

Often times when I'm writing comments in a slow or interrupted internet connection, I notice that the comment is uploaded in such a way that the comment box is removed as its contents are being sent to the server, and once upload is done, the comment section resets with the new comment in place. If the comment isn't sent to the server completely, though, or if connection with the server is lost, the comment box disappears, and the webpage continuously tries to, unsuccessfully, upload the comment to the server. This often leads me to having to re-write the comment, sometimes being a very long and annoying process. So, lovely Instructables Developers, I'd think it would be very nice if you could add a few lines of code to your PHP so that the box is only un-editable while the comment is being set, and so that if upload takes longer than normal, the box is editable again and a notification appears.

Posted by aelias36 7 years ago

How to make small scale hempcrete?

I was watching this video about hempcrete. It is supposed to be just made of lime, shredded hemp stalk (which you can replace with straw if not available) and water. There is also briefly mentioned a lime heating process, but nothing more detailed than that. I'm not into making a house with this, but I would be interested in making things like plant pots, small tables and stools, and various artwork with it. I need more info though. Like... Is there a specific kind, or prepared lime I need to use? What is this heating process you need to do to it? What parts lime to hemp/straw is recommended? How long is the curing process? It seems like you could make some neat things out of this, but I haven't found anyone doing so. Are there any experts that could offer advice about this kind of thing? Thanks.

Posted by horsebones 4 years ago

download history

Is there a download history to view all of the downloaded instructables I have collected?  I was in the process of backing up my archives and POOF....lost them..

Posted by Audio Alchemy 7 years ago

What process would be best to make this mold???

New here so sorry if its in the wrong spot but I need to recreate the molding in this picture. Now it doesnt have a ton of detail so it should be fairly easy to make but I have no idea what to do. Can I vacuum form it and then use that piece to pour a mold. Can someone post some good links on what to do? Thanks John [IMG][/IMG]

Posted by 85 GT Kid 6 years ago


Hey, i was just wondering if anybody here knows how to identify aluminum as a metal? i am in the process of making thermite and dont know what aluminum would look like, please help! thanks in advance! :D

Posted by andy60 11 years ago

blue screen of death on my laptop

Ok i installed updates and when i restarted and logged on, my start bar showed up as the old windows 98 bar, and then my computer blue screened with this message stop: c00002la {fatal system error} the windows logon process system process terminated unexpectedly with a status of 0xc0000005 {0x00000000 0x00000000} the system has been shut down so i cannot do anything but go to the setup menu to look at the system, i cannot log on to windows without bluescreening everytime

Posted by ClemensY290 9 years ago

Comment post-processing does not respect line breaks in PRE-blocks

I have just noticed that the post-processing done when a comment is posted does not respect line breaks included inside ... blocks.  See, for example, my reply to  The preformatted text is shown as a single line, but entered it as three lines:   The text seen here   is in fixed format,   sort of like source code. Notice the line breaks, which are respected when I type stuff like the above in the WYSIWYG box (so the tags get converted to &lt;/&gt; entities).  Here is exactly the same five lines of text entry pasted into the Source interface: The text seen here is in fixed format, sort of like source code. As I'm looking at it now (in the editor), there are three separate lines, all in typewriter font.  However, when I publish this, that is likely to change...

Posted by kelseymh 8 years ago

Teacher Builds a Tardis

Sillysparrowness, a self-described "German teacher with a leaning towards silliness," described the process by which she came to build a beautiful, obsessively finished Tardis. Enjoy... YouTube via BoingBoing.  

Posted by Kiteman 6 years ago

Solar Cells at home?

Anyone know a way to make your own solar cells? Saw 50 cells for about $250 US on Ebay and wondered if thats as cheap as they get. Not that this didn't seem pretty cheap, but always looking for cool new processes.

Posted by bowakowa 11 years ago

How is this person moulding paper onto aluminium?

Hi Guys, Intrigued about this guys process... would it be heat gun?

Posted by jarris 4 years ago

Starry night

For art class I have to paint a famous painting. I'm thinking about doing Starry night and writing an ible of the process. What do you think??? The original painting:

Posted by emilyvanleemput 5 years ago

How do you make an Instructable?

I am baffled. How about someone making an Instructable on how to make an Instructable.  I find the process ungainly and hardly user friendly.

Posted by intlpvti 5 years ago