picaxe code help? Answered

Here is the code for a breathnalayzer using picaxe14m2  ignore the if b2= as i have to experiment and get the values and i havent done so. the code stores messages in eeprom and in the starting it operates a rgb led to create effects the code: low B.0'initialise lcd outpu pause 500'wait for lcd to initialise 'load messages in eeprom EEPROM 0,("NO ALCOHOL") EEPROM 10,("ONE OR TWO DRINKS") EEPROM 27,("BUZZED") EEPROM 33,("DRUNK") EEPROM 38,("WASTED") EEPROM 44,("BLOW ON THE SENSOR FOR 5 SEC") high b.2'red pause 2000 low b.2 high b.3'green pause 2000 low b.3 high b.4'blue pause 2000 low b.4 pause 1000 high b.3,b.4'sky blue pause 2000 low b.3,b.4 pause 1000 high b.2,b.4'pink pause 2000 low b.2,b.4 pause 1000 high b.3,b.2'yellow pause 2000 low b.3,b.2 pause 1000 high b.2,b.3,b.4'white pause 2000 low b.2,b.3,b.4 pause 1000 for b0=45 to 75 'print blow on the sensor read b0,b1 serout B.0,n2400,(254,1,b1) next b0     main:readadc B.1,b0      if b2=54 then main1      if b2=45 then main2      if b2=45 then main3      if b2=45 then main4      if b2=245 then main5      goto main      main1:high b.3'on green led       for b3= 0 to 9'print no alcohol       read b3,b4'read eeprom locations 0to10       serout b.0,n2400,(254,1,b4)       next b3       low b.3       goto main       main2:high b.4'on blue led       for b5= 11 to 27       read b5,b6       serout b.0,n2400,(254,1,b6)       next b5       low b.4       goto main       main3:high b.3'sky blue       high b.4       for b7= 28 to 33       read b7,b8       serout b.0,n2400,(254,1,b8)       next b7       low b.3       low b.4       goto main       main4:high b.3'yellow       high b.2       for b9= 34 to 38       read b9,b10       serout b.0,n2400,(254,1,b0)       next b9       low b.3       low b.2       goto main       main5:high b.2'red danger       for b11= 39 to 44       read b11,b12       serout b.0,n2400,(254,1,b12)       next b11       low b.2       goto main

Asked by robot1398 6 years ago | last reply 6 years ago


my B-days tomorrow!! :-) :-)

Well, instructables B-day anyway. so you all better get me something nice!!! (just kidding)

Posted by dsman195276 10 years ago | last reply 9 years ago


How to mathematically prove that a/b/b = a/b^2? Answered

Asked by Wisaam 5 years ago | last reply 5 years ago


where is the cheapest place to buy a tv-b-gone?

Asked by xproplayer 9 years ago | last reply 9 years ago


Where are the A and B switch connections on the Wii Motion controller printed curciut board?

Wii Motion controller printed curcuitboard. I want to install remote A and B buttons for myWii controller. I can take the unit apart.  The A button looks straignt forward but the B button is comprised of four wedge shaped pads.  Where to a make solder connections to the PC board for the B button??

Asked by maxthrottle 7 years ago | last reply 7 years ago


unknown military item hellweg AR-0022-B ?

I was given this strange object by a friend. it is definitely Australian Military.  The tag reads: HELLWEG January 2000 AR-0022-B Anyone have any idea what it is/what is used for? thanks   

Asked by 50-50 5 years ago | last reply 5 years ago


TV-B-Gone Pwnage @ Best Buy!

My friends I go to best buy and turn off tvs. I built to tv-b-gone kits from scratch for it. Sorry for the video quality, I had to hide the camera more or less. Enjoy and Comment!

Posted by joejoerowley 10 years ago | last reply 8 years ago


what is the circuit operation of TV-B-Gone???

Plss... i nid the answers right now! i nid it to my research paper hir in school....  tnx

Asked by adics_eboi15 9 years ago | last reply 9 years ago


TV-B-Gone Pro SHP Unboxing!

I did a quick test and unboxing video for your delight of the brand new tv-b-gone pro. Here is some info from their site. You should get one. Great Range! The TV-B-Gone Pro SHP (Super High Power) is a marvel to behold! Check out some of the features of this amazing and handy device: Turn off TVs up to 100 meters away! Includes all Gen3 TV-B-Gone Power codes for North America and Europe, covering well over 90% of all TVs in the world! One model for all countries! Light-weight, looks like a small PDA! More about the TV-B-Gone Pro SHP! ThanksJoe

Posted by joejoerowley 10 years ago | last reply 10 years ago


Do the IR LEDS in the TV B gone have to be in this order:

CLEAR BLUE BLUE CLEAR. I did mine differently and it works fine?

Asked by UgniusR 8 years ago | last reply 8 years ago


TV-B-Gone Codes?

Hi, So I was wondering if anyone had the TV-B-Gone codes in a .wav or .mp3 format so that I could use them on my ipod like this.Anyone have any idea were to get them or how to get them?Thanks

Posted by joejoerowley 10 years ago | last reply 6 years ago


USB B versus USB miniB

I was wondering about some boards that use the USB B type of connectors.  Is it possible for me to use them with a USB miniB type of connector if I rework the board to the miniB pinout, or is there something about the USB B connector that makes it better for these boards?  One of the boards in question happens to be the Arduino Duemilanove.  Does anyone know if the miniB would retain the same functionality as the USB B type connector?

Asked by KentaGrace 8 years ago | last reply 8 years ago


Would it be possible to place a TV-B-Gone inside a Doctor Who sonic screwdriver? Answered

Uhh i just thought this would be interesting. But seriously, could you compress the TV-B-Gone inside a sonic screwdriver type thing? (homemade or not)

Asked by branflakes138 8 years ago | last reply 7 years ago


is it possible to make a tv b gone with an attiny85 20pu?

I have a few at the house. i am programming with an arduino uno as isp. all the examples i can find uses an ATtiny85V -10.

Asked by rtalley 6 years ago | last reply 6 years ago



I want to b emo but how do I tell my parents??????

Asked by AbbiezAwesomez 2 years ago | last reply 2 years ago


Switching Circuit

Hi, I want to build a Auto-Switching circuit. I would appreciate if you could help me on circuit. Sorry for my ignorance in circuit design. There are two power sources A and B. The A is 12v and B is 3v.I would be utilizing the power from A only when B is turned On. So an auto switching circuit is required in this scenario. The circuit should sense if B is On, if so it should let A On.

Posted by arunsun 10 years ago | last reply 10 years ago


How do I program a microcontroller (tv-b-gone)? Answered

Hello! So I want to make a TV-B-Gone, I can't buy the kit, the question is: what do I need to program a microcontroller with the respective firmware? Or instead of programming by myself, is there any other components and etc to replace the ATTINY85V-10-PU from the project? Thanks!

Asked by Kokkan 8 years ago | last reply 8 years ago


Found an old linksys wireless-b broadband router!

It's new and it works. Any ideas on what to do with it?

Posted by sardines454 11 years ago | last reply 11 years ago


pattern for hat scarf & mitten? Answered

I am looking for a pattern that is a hat with a scarf wuth mittens on bottom of scarf......Birdi B

Asked by birdi b 7 years ago | last reply 7 years ago


I Need a Cool design? Answered

I need a design with a letter "B" in it Black and white please Dimensions 336x228 Please and thank you!

Asked by Chromatica 9 years ago | last reply 8 months ago


Can I use my IRDA port on my computer for a TV-B-Gone like divice?

I have an IRDA port (the infrared serial port) on my laptop and I was wondering if there was a program that sends out IR signals to turn off TVs just like the TV-B-Gone. If not, is there a program that can record IR signals from this IRDA port and play them back later? This way I can just record the TV-B-Gone's signals and play them back later.

Asked by physics_dude 8 years ago | last reply 8 years ago


B & O Redline Speaker (35) are great speakers but need a "Passive BeoLink Kit.

B & O Redline Speaker (35) are great speakers However I've just purchased the BeoSound 3200 player with 6000 speakers . I want to use the redlines in another room of he house. Is there another way to amplifiy  them without the need to use the expensive BeoLink Passive kit? The New  BeoLab speakers are powered directly. Thanks Ken

Asked by shootme 8 years ago | last reply 8 years ago


Anyone familiar with EZ robot bluetooth controller?

I have the EZ-B (controller) and am attempting to recreate the distance sensor tutorial however, unlike the sensor in the tutorial, my ping sensor only has three pins, ground, 5v and SIG how do i use it with the ez-b?

Asked by rptech 6 years ago | last reply 6 years ago


arduino button problems, again

I have a problem with two buttons and a RGB LED. I want the two buttons to be pressed and then the brightness decreases/increases but it isn't working. When i press it, it decreases it but then it doesn't do it again. Any help would be appreciated. Code included below (problem is in bold) : int button = 8; int button_two = 7; int redPin = 6; int greenPin = 5; int bluePin = 3; int val = 0; int val_two = 0; int numb = 0; int r = 0; int g = 0; int b = 0; int i = 0; void setup() {   pinMode(redPin, OUTPUT);   pinMode(greenPin, OUTPUT);   pinMode(bluePin, OUTPUT);   pinMode(button, INPUT);   pinMode(button_two, INPUT);   Serial.begin(9600); } void loop() {   val = digitalRead(button);   val_two = digitalRead(button_two);     if (val == HIGH && val_two == LOW && numb < 7) {     numb++;     delay(300);     } else if (val_two == HIGH && val == LOW && numb > 1) {     numb--;     delay(300);     } else {     numb=numb;   }     if (numb == 1){       r = 255;       g = 255;       b = 255;   }   if (numb == 2){       r = 255;       g = 0;       b = 0;   }   if (numb == 3){       r = 0;       g = 255;       b = 0;   }   if (numb == 4){       r = 0;       g = 0;       b = 255;   }   if (numb == 5){       r = 255;       g = 255;       b = 0;   }    if (numb == 6){       r = 255;       g = 0;       b = 255;   }    if (numb == 7){       r = 0;       g = 255;       b = 255;   }   if (val == HIGH && val_two == HIGH) {       int r_cal = r / 5;     int g_cal = g / 5;     int b_cal = b / 5;         r = r - r_cal;     g = g - g_cal;     b = b - b_cal;   Serial.println(r);   Serial.println(g);   Serial.println(b);   delay(300);   } else {     val == LOW;     val_two == LOW;   }   analogWrite(redPin, r);   analogWrite(greenPin, g);   analogWrite(bluePin, b); }

Posted by Isaac Emery 1 year ago


simulation error? Answered

Main:irin [1000,main],C.3,b0 if b0=16 then ahead if b0=18 then right if b0=19 then left ahead:high C.0,B.5 ,C.1,B.4 pause 300 goto main right: high B.5,B.4 pause 300 goto main left: high C.0,C.1 pause 300 goto main this is the code when i try to simulate it  the programming editor says variable not found can you please tell me the reason

Asked by robot1398 7 years ago | last reply 7 years ago


Cheap Christmas presents

Hey.... any ideas for christmas presents that aren't for your close friends... (parents of b/f, b/f's frieds... etc.) I need some crafty cute inexpensive ideas.

Posted by hethlee 12 years ago | last reply 12 years ago


how do i program a arudino to play happy b-day?

Does anyone know how to program an arudino platform to play happy birth day????????????

Asked by Laserman595 9 years ago | last reply 9 years ago


Is there such thing as a USB adapter for iPods?

Asked by B-mag 9 years ago | last reply 9 years ago


Variable 3D Proximity/Distance Sensor With Feelings : what to and how to

Greetings, I would like to know if there is a simple way to create a Variable 3D Proximity/Distance Sensor. When you think about "Proximity Sensor" you think about "Infrared", but IR proximity sensors only ''scan" a straight line and not a whole spheric space, so that is not the answer. Detail 1: 3-dimensionality Imagine this: We have object A and object B. Object A has the sensor. Object A would sense object B's distance to itself (A) regardless of the relative position between the two objects - it wouldn't matter if B was in front of A, if it was on top of A, if it was behind A, etc. Detail 2: Variability The sensor would sense a variable proximity/distance. It would know if the two objects were 1cm apart, π cm apart, 12cm apart, 50cm apart, etc. Detail 3: Feelings :3 (Oh, Teh Loev) Imagine again objects A and B. Object A would only sense Object B's distance to itself. Not it's distance to a table, nor a wall nor your cat. Like if only Object A and Object B existed. Here's the catch: both objects would have the sensor and they would sense eachother (again, not anything else), so I can't use 'things' that would interfere with eachother (like, I don't know, isn't there something like the adding of sound waves[read phrase bellow]? I'm only a high-school student...). I thought about using sound waves (because they spread 3-dimensionally), but I don't know how I could implement that... Outcome This is an example of what the sensors could be used to after having the sensors built and the code written: 1: Object A senses B. Object B senses A. 2: If B is 50cm apart from self (A), light LED1. If A is 50cm apart from self (B), light LED1. 3: If B is 20cm apart from self (A), light LED2. If A is 20cm apart from self (B), light LED2. 4: If B is 5cm apart from selft (A), light LED3. If A is 5cm apart from self (B), light LED3. As you can see, in this example both objects would do exactly the same... Sooo.... How can I make such a PAIR of sensors that wouldn't interfere with eachother? P.S.: I'm talking about making a circuit of my own or buying a sensor and implementing it in an external circuit of my own or whatever... Thanks a lot.

Asked by pedrotome 8 years ago | last reply 8 years ago


Entry Moderating Time

How long does it take for them to decide wether my contest entry should be accepted or not? I submitted entry "A" to contest "A", and I submitted entry "B" to contests "B", "C", and "D" only an hour after entry "A". Entry "A" got accepted into contest "A" in 17 hours, entry "B" got rejected from contest "B" in 20 hours, and it's been over 2 days and I have not heard anything about contests "C" or "D".  How long will this process take? 

Posted by nhtexan 6 years ago | last reply 6 years ago


Unknown Part of Drill - Help? Answered

This should probably be an easy answer, yet I'm unable to find it through Google. On almost, if not every hammer drill, there's a part that lets you connect a handle to the drill, like this:  https://db1736767dbd5e7094bb-d61bbc5d0b342a54145a236e2d5d1ebf.ssl.cf4.rackcdn.com/Product-800x800/bfe965c8-660a-43ae-ba31-b870da3a96af.jpg or like this:  https://ae01.alicdn.com/kf/HTB132G1LFXXXXc7XpXXq6xXFXXX7/-font-b-Press-b-font-Bench-font-b-Drill-b-font-Stand-Rack-Repair-Tool.jpg (clickable links in the comment below) How is that part called? A collar? Thanks.

Asked by Yonatan24 1 year ago | last reply 1 year ago


My mom's b-day is coming up... Answered

 i want to make a kick a$$ present. Any ideas? she really like couponing, books, and family. But i dont want any picture frames or anything?

Asked by patriots8888 7 years ago | last reply 7 years ago


i want a solar powered battery which can store the energy for a long time- 1 day and it shud b fitted into an garment.?

Actually...i want one solar powered battery that can store the sun energy for a longer time.and can b later used.example:- like in the hillly regions..u dnt get power supply , so u can charge while downhill and use it when we can to hilly regions...ie it wnt b able to give sufficient solar energy...in that case i need one...and it shud b fitted into the garment.

Asked by jijicurie 9 years ago | last reply 9 years ago


How to copy/transfer files(songs,video,photo,dvd) from iPod to Mac/PC?

[b]The article includes two parts. 1. How to Transfer Files from iPod to Mac? 2. How to Copy Files from iPod to PC?[/b] [b]Part1. How to Transfer Files from iPod to Mac? [/b] Above all, you need the iMacsoft iPod to Mac Transfer. iMacsoft [url=http://www.ipodtomac.biz/]iPod to Mac[/url] Transfer, the excellent iPod and iPhone management tool is specially designed for Mac users. It can fast transfer, rip, copy and manage your music, videos, photos, podcasts and TV Shows between iPod/iPhone and Mac and add them to your local iTunes library. What can iMacsoft iPod to Mac Transfer Do... Rip, copy and manage iPod music, videos, photos, podcasts and TV Shows between iPod/iPhone and Mac. Transfer files from iPod to Mac, iPhone to Mac. Edit and delete iPod/iPhone playlists. Copy files among multiple iPods. Transfer iPod to iPod on Mac. Transfer iPod music, videos, photos to iPhone. [b]How iMacsoft iPod to Mac Transfer Working... [/b] [img]http://www.ipodtomac.biz/images/ipod-to-mac-localfolder.jpg[/img] Step 1. Run software and click the "Add Files to iPod" or "Add Folder to iPod" button. Step 2. Click "Open" button to import selected files to your iPod. Step 3. When following dialogbox appear, you have done that! [b]Part2. How to Copy Files from iPod to PC? [/b] If you are an iPod user, and you want to know : [b]* copy your iPod content such iPod songs, movies, playlist and photo onto more than one PC * copy songs, video, photo from iPod to pc of your friend to share your iPod. * sync your iPod with a new computer. * backup your iPod content to a newly bought computer. * Your iTunes crashed and how to use iPod on another computer. [/b] In fact, copying files from [url=http://www.ipod-to-pc.net/] iPod to PC [/url] is easy to do. All you need to do is make sure that the PCs in question have iTunes or a similar software program installed on them. As we know, Cucusoft iPod to PC Transfer can help you copy files including songs, video, movies, pictures etc from iPod to PC, just need few steps, you can copy files from iPod to PC, follow this guide, you can resolve your problem. [b]Guide: How to Copy Files from iPod to PC? [/b] [img]http://www.ipod-to-pc.net/images/ipod-to-pc-1.gif[/img] [b]Step1[/b]. Launch the program. Normally, the program will search the device automatically. [b]Step2[/b]. Choose the list and files you want to transfer , Click the Export button. [b]Step3[/b]. After you clicking the Export button, the following window will pop up, you can choose transferring to computer or iTunes directly. You can set the output folder at Advanced->Options before transferring... [b]Step4[/b]. When the transferring finished, the following window will pop up. It shows that how many files have been done. You can click the OK button to view the output files. OK, now you have copied files from iPod to PC. And, if you are also looking for the [url=http://www.bestdvdconverter.com/]best dvd converter[/url], here are the Best software. Have a good day!

Posted by xxbbyyss 8 years ago | last reply 8 years ago


An Instructable that should be featured

Please consider featuring this Instructable. In my mind it demonstrates everything good about Instructables. It is not one of mine. I do not know the author. I simply believe it is excellently done. Thank you. Phil B

Posted by Phil B 6 years ago | last reply 6 years ago


MR-B gun

Does anyone think they can make a well working replica for this gun made out of K'Nex?  I myself could probably make this, but due to a recent fire, I'm low on K'Nex, so I'd like to know if anybody is capable of doing that. This was the only picture I was able to find so sorry if it's a bit unclear.

Posted by Cheezpaper 7 years ago | last reply 7 years ago


Transistor NAND Gate does not completely work.?

I have been trying out some logic gates using transistors and I am confused already. I have built a NAND gate using 3 2n3904 BJT's. The resistor values are aprox the values in the schematic. The Diodes are 1N4003. Vcc is 5v (~4.9v) The schematic can be found here https://www.instructables.com/id/Digital-Logic-Gates-Just-Using-Transistors/ I have everything hooked up like the schematic shows. The issue I am having is that it is not working as I would expect a nand gate to work. The truth table shows that if A and B are both Low then C is High.  If A is High and B is Low then C is High. If A and B are both High then C is Low Here is what really happens.  A Low: B Low: C High A Low: B High : C High A High: B Low : C Low (but still ON just very very dim) <=Shouldn't this still be a High state? A High: B High: C Low Does any one have any ideas as to why it is behaving like this. I have rebuilt this circuit about a dozen times now making sure I have things correct. I am stumped.

Asked by atrumblood 6 years ago | last reply 6 years ago


How do I make a program that translates chords into Stylophone tabs? Answered

All it needs to do is convert the chords on the left to the numbers on the right! A 1 A# 1.5 B 2 B# 2.5 C 3 C# 3.5 D 4 D# 4.5 E 5 E# 5.5 F 6 F# 6.5 G 7 G# 7.5 A 8 A# 8.5 B 9 B# 9.5 C 10 C# 10.5 D 11 D# 11.5 E 12 If anybody could help me because I have no experience on computer programs! Thansk, Flannel UK

Asked by NatNoBrains 7 years ago | last reply 7 years ago


New black and decker single charger problem

I bought a new b&d; single charger and when i put my new battery in( slider tape) , the charger  red light  will not stop blinking what is wrong.

Asked by AndreaC10 3 years ago | last reply 3 years ago


Real-time Ocr and SMS Notification?

How can I develope a program as I explain below? I don't know where to start. By the way, I know C language. Is there any helpful resource about this subject? Thanks. For example, there is a live number generator between 1-15 as image. This images changes every 10 seconds. Program should catch the image everytime as digit number. By the way, there is 3 integer variable as a,b and c: If the number between 1-5, then variables b and c should increment by 1 and 'a' should be equal to 0. If the number between 6-10, then variables a and c should increment by 1 and b should be equal to 0. If the number between 11-15, then variables a and b should increment by 1 and c should be equal to 0. If a,b or c is equal to 13, then program should send an SMS to phone as for example 'a is 13.

Asked by kaann45 1 year ago | last reply 1 year ago


Logic signal conditioning question?

I a robot i am building, i need to condition the signal as follows with any Microcontroller, only logic gates If 1 is high then  A & C should be high If 2 is high then  B & D should be high If 3 is high then  A & D should be high If 4 is high then  B & C should be high Where 1,2,3&4 are inputs and A,B,C,D are outputs No two inputs will be high a t the same time

Asked by qwerty156 7 years ago | last reply 7 years ago


Magic tricks

I think that there should be more instructables on magic tricks

Posted by B-mag 9 years ago | last reply 9 years ago


how to color a b/w photo with photo shop?

Asked by chuck1932 10 months ago | last reply 10 months ago



how do you make an airsoft bazoka?

Asked by shot789 9 years ago | last reply 6 years ago


My b-day is TODAY :-D :-D

Its February 28. Its My birthday! Sup yall? that is all. We got a party, we got a party! yo! Word. Ok, that was one of my raps. That is all I have to say.

Posted by DJ Radio 9 years ago | last reply 9 years ago


Theres this girl i have a crush on at skool?

Theres this girl i have a crush on at skool i would like to get her a b-day present she likes soccer and smiggle any suggestions

Asked by allenmt 8 years ago | last reply 8 years ago


any facts on radio waves....asap?

This would b excellent 4 science.

Asked by cheezies 9 years ago | last reply 9 years ago


Brushed in-runner to brushless out-runner?

Asked by c--b 8 years ago | last reply 8 years ago