Search for SW in Topics



Convert a DVD via SW into Microscope!

Could one turn their DVD or CD via SW to a microscope viewing reflected light from the laser and placing the specimen on the disk (pls someone take the challenge). I would love to see such an Instructable

Question by moris_zen    |  last reply



Need to find a way to repair Pioneer SW-99 subwoofer. HELP!!!!? Answered

It has the adjustment for power supply on the back and any adjustment over 110v, I get the thump- thump error. Any ideas? Checked everything I know to check

Question by Neg8tyv    |  last reply



Cheap amplifier board, what do all the connections mean please

I bought a cheap amplifier board based on the PAM8403 chiphttps://www.amazon.co.uk/dp/B075L9TVHB/ref=cm_cr_r...most of the connections make sense, from top to bottom in the main picture, two speakers, then power, then sw and gnd, followed by the left right ground which I assume is stereo input.I have no idea what the SW and GND refer to, can anyone help me out here?

Topic by oragamiunicorn    |  last reply


anything nerf related

I am trying to find any Nerf guns, don't care if they are broken.  Darts, attachments, anything! I live in sw Michigan.

Topic by elliot5445  




why can i not switch pictures in the instructibles with firefox?

Is instructables using some sort of tracking sw that my noscript is blocking silently?  I have allowed all permissions to instructables, but it still will not switch pictures.  works in IE though.

Question by phillipnolan    |  last reply


Motherboard help??

I was switching computer cases and i couldn't find where the power switch connection goes. The only available socket says BREAK SW. Could this be where the power switch goes? Also... There isn't anywhere to plug in the USB sockets from the case... Help?

Question by grundisimo    |  last reply


Residential 3-way switch problem with leaking voltage?

I noticed a slight glow in the light when it was switched off. LED bulbs in a ceiling fan/light fixture. House built in 1905, wired whenever? using all-fabric insulation type wiring but not knob and tube .  Removed the load from sw 2 and tested travel wire voltages and got 95 v on one and 25 v on the other. Flip sw 1 and the voltages trade wires along with the switch position change.  The switches tested OK but replaced both anyway and got duplicate readings when repeating tests. Isolated the travel wires and got no continuity  (infinite resistance) using all scales of an analog meter as well as a Fluke digital multi-meter.. We checked for voltage feedback from another circuit and even used an extension cord to a different circuit in order to use a different ground wire. With the load connected, the travel wire being used shows 120 v but we still get 25 v on the other wire. I discovered this because when I bought the house only sw 2 worked the light, and one travel wire was disconnected at sw 1 and taped  off.. I have not opened the ceiling box at the fixture because the problem exists when the wire to it is disconnected.The previous owner said he didn't remember what sw 1 went to because it hadn't worked for many years.   So we eliminated worn insulation or nail into the cable because either one  would cause a resistance reading below infinity. All we can think of is a legacy doorbell. Neither of us remembers working one, but I know some used 120 volts and a relay.  People have told me that relay contacts can cause this problem when they get worn. Does anyone have any ideas? I'm retired on a fixed income and tearing walls open is an absolute last resort.  Thank you in advance for any advice I can get!

Question by gerryk8    |  last reply


on the tunecast fm tuner mod, do you need to install a switch in step 6 ? or can the be done by jumping points a and b?

Im not sure of the need for the sw or the resistor . Can a "permanantly on" state be acheived by just jumping point a and b with a wire.?

Question by daddoli    |  last reply


Arduino to control 75w halogen lamp as a on/off switch. Answered

I am using a tip120 but it gets too hot, so i got a tip3055 is it going t be fine? what do you guys suggest? need any other infomation?

Question by gioruchan    |  last reply


How do I actually attach the button band to the sweater. What stitch should I use to sew it on?

I know how to knit the garter stitch button band...but what stitch should i use to actually sew it to the cardigan (stockinette) sweater?

Question by pookie17    |  last reply


Make A ShortWave Loop or Reel Antenna for portable radio? Answered

I purchased the coby cx-cb12 portable radio that has 12 bands including sw 1-9, and I purchased a Kaide Portable that has sw 1-7 when I purchased the coby radio a guy suggested that I also buy a pocket reel antenna to get better reception but when I search for one it comes up as this http://www.amazon.com/Kaito-T1-Radio-antenna/dp/B00066Z9XG/ref=sr_1_1?ie=UTF8&qid;=1361888769&sr;=8-1&keywords;=pocket+reel+antenna the thing is my portable radios don't have an external antenna jack or well there is no place for one and I don't know how I would hook it up. I saw on here people had made shortwave antenna's but I need one more suited to a portable radio, and was wondering if there was a way to make one that would work with a portable radio or if there is some other type of antenna that I could purchase. Thank you.

Question by Graydant    |  last reply


NEED help understanding Circuit board & Wires ?

I have 2 Mobility scooters with similar circuit boards , one has 3 more items connected thru the circuit board where as the other one has those 3 items in the fiberglass body on the tiller . One has the Ignition wires as B+(SW) and B+ as the ignition wires on the bigger circuit board , And the other has B+(SW) but no makings on the circuit board that says B+ ( but it does have B- ) , Both scooters have Curtis Motor Controllers 1203A,But it says in the Curtis 1208C manual that The B+(andB-, if applicable ) wires supply power to the throttle control panel ----such as for the key switch ---- should be bundled with the remaining throttle wires so that all these wires are routed together .i've enclosed some pics and hope some one can help ..Below are some pics describing the 2 Circuit board set ups for the same scooters hope some one can enlighten an old brain (that's slowly fading )Kindest Regards in advance Gordon

Question by GordonP9    |  last reply


Help replacing the amplifier in a powered sub woofer?

I have a Phillips SW 900 powered sub-woofer. The internal amplifier board has broken and I need to get a new board or an equivalent amplifier.  The internal subwoofer is a 6 inch 4 ohm 40w driver.I don't want to spend any more than around 50 US dollars. The only connection that I need is one RCA jack for audio input. Thanks.

Question by nurdee1    |  last reply


why cant i favorite ibles? Answered

i cant faverite anything because it says ERROR 400:user nfk11(USER) something something something.if you have seen this or you know whats going on pleas help.

Question by nfk11    |  last reply


how to write a program to control switch and LED

This program is based on How to Program Switch and LED Connected with PIC16F877A. http://www.kynix.com/BlogImage/9.4.7.png    The following code demonstrate, how to write a program that scan the switch status and turn on and off LED. The switch is connected at PORTE bit-0 and LED connected on PORTB bit-0. When switch is read as high state, the LED is turn-on and when switch state is low, LED is turn-off. The switch debouncing rate is 5msec. The code is written in “mikroC PRO for PIC v.5.6.1” IDE and simulation is done with Proteus 8.0 SP0.  PIC16F877A-I/L Datasheet Code in mikroC [code] // switch connected on porte #define SW_AT_PORT PORTE // debounce rate 5msec #define DBOUNCE_RATE 5 // direction signal sbit LED_dir at TRISB.B0; sbit SW_dir at TRISE.B0; // bit labels portb sbit LED at PORTB.B0; sbit SW at PORTE.B0; // old state save flag bit oldstate_one_to_zero; bit oldstate_zero_to_one; void main(void) { // set porta and porte as digital ADCON1 = 0x06; // set direction as output LED_dir = 0; // set direction as input SW_dir = 1; // init LED LED = 0; // init old state flag oldstate_one_to_zero = 0; oldstate_zero_to_one = 0; while(1) { // Detect logical one if(Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 1)) { // Update flag oldstate_one_to_zero = 1; } // Detect one-to-zero transition if (oldstate_one_to_zero && Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 0)) { // Update flag oldstate_one_to_zero = 0; // LED ON LED = SW; } // Detect logical zero if(Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 0)) { // Update flag oldstate_zero_to_one = 1; } // Detect zero-to-one transition if (oldstate_zero_to_one && Button(&SW;_AT_PORT, 0, DBOUNCE_RATE, 1)) { // Update flag oldstate_zero_to_one = 0; // LED OFF LED = SW; } }} [/code]

Topic by narne    |  last reply


Knex Gun: Infinity

Hey guys, sorry about the delay. I've been really busy with school, since I'm a senior, gotta keep working and getting good grades and what not. Anyways, I have the pictures for the Ible ready, just need to upload em.  Just give me a little more time. Thanks for always being there, and supporting me! -SW- P.S: There has been several modifications since the video, they will be in the Ible, and I warn you, it is not an easy build, and it requires quite a lot of pieces.

Topic by Senior Waffleman    |  last reply


Solar Air Con for animal shelter

I am thinking of moving to a warmer country ( SW France ) than England but I have a small pack of huskies that I would like to keep cool in the warmest weather. I was wondering if it is possible to use the solar energy available in abundance to provide an air cooling system for them. I realise that aircon normally requires a lot of electricity but I am only looking to keep a small space ( block built shelter of about maybe 7-800 cubic feet ) cool and hoped that this might be possible. Any ideas ?

Topic by ukpicker    |  last reply


i have got this thing off ebay just need a clue how to connect something to it? Answered

I have a small amp PCB off ebay it has the connectors down the side for the points to connects the parts to it but i just cant work out the connect or plug into the device what i have so far is R+          Speaker right R-           Speaker  right L+           Speaker left L-            Speaker left gnd        power +5v         power sw          switch gnd         switch lin gnd rin thanks for any help you can offer

Question by nonamesleft    |  last reply


Do PMDC motors and SWDC motors require different motor controllers? Answered

I'm looking to run two Etek-R PMDC motors from one 700 amp controller. Will a GE series 700 amp controller work? Upon calling the company that offered it today I received-- through proxy-- the response that the compnay carried no permanent magnet controllers. Is there a difference between pm and sw controllers? I was under the impression that both required the same type of control: varying voltages. could the company have confused permanent magnet with pulse width modulation? any explanation is greatly appreciated!

Question by gruffy    |  last reply


Mother Earth News contest: Design a Solar Poultry Waterer, Win a Brinsea Incubator!

  The Mother Earth News, is having a contest. Design a Solar Poultry Waterer, Win a Brinsea Incubator! To submit your design for a solar poultry waterer, e-mail a description and photo to “letters (at symbol) MotherEarthNews.com.” Mail hard-copy entries to “Solar Poultry Waterer” at Mother Earth News; 1503 SW 42nd St.; Topeka, KS 66609. We’ll publish the winning entry in the magazine, and the designer will win a free Brinsea Octagon 20 Eco incubator. Entries must be received by May 1, 2011, to qualify.

Topic by Goodhart    |  last reply


Anyone own a pair of these?

I just stumbled across some old pictures I took a long time ago of my bookshelf speakers that I use in my room at night, so I can still listen to my music, but not wake my parents with my tower speakers. For small bookshelf speakers, they can actually pack a punch, at only 80 watts a piece. They're also the heaviest speaker for their size I have ever picked up, you couldn't find a speaker this sized in any electronics store that didn't feel like a box of cardboard or a plastic cube. Anybody ever owned a pair of these?? The model is SW-7II

Topic by Punkguyta  


Reusing old laptop & cordless components

Hi, I have an old laptop which stopped working due to variety of reasons (I suspect it was mostly a SW issue). I have reason to believe that its screen and lots (or most) of other HW components still work fine. (I have done the easy part of removing its HDD and am using it like a portable disk). Can someone suggest or point me to instructables for to reuse components from this laptop? Same for my cordless phone which is a Panasonic KX-TC1486B . (I have taken the phone apart already and have labeled parts as originally found just for ref). Thanks, Sushrut.

Topic by sushrut.j.mair    |  last reply


New Start

I think at this point in time of my life, ive lost my ability to create well designed weapons with knex. But Ive always been fascinated by the ball machines, and I would like to pursue further into my knex hobby to make them. But my skill when it comes to this is at rock bottom. I have no experience, and no concept on how to design anything for these. I also need to buy more parts to get started on it and be able to finish it without worrying about missing some parts. I havent gone anywhere guys, just had some time off since I couldnt make anything good. I miss all of you guys, and hopefully, I can get something going and youll see more from me :) -SW-

Topic by Senior Waffleman    |  last reply


Knex

Hey everyone. Just giving you a heads up. I'm not dead, just slightly inactive. I do get on once in a while and look at what's new, but I don't build too much anymore. I still build, but its a slower process. I just graduated high school so I've been looking for jobs and what not. Anyways, I'm mainly getting my point across that I have not left this wonderful community, just production is slow due to life. I'll try to post updates soon, but again, slow process. Thanks to everyone who subscribed, looks at my posts, comments, all that good stuff, I love this community, and I love all you guys. Again thank you so much for everything, and I'll see you guys around! -SW-

Topic by Senior Waffleman    |  last reply


How to hook up 2 LED each with their own toggle switch to a battery? Answered

Im looking to install two toggle switches in my car. when the switch is placed in the on postion i want a LED light to turn on. I planning on using one red led light 1.8v 20ma and one yellow light 2.1v 20ma. Where im getting lost is the toggle switch has three metal tab label power acc and ground. Looking at using a 9v for the power source. So what the best route to wire this up. Or should i just use a seprate power source for each light and switch. As for the three tabs on the switch i guess that the postive wire goes to the power, but then would the acc go to the led postive side, and both the switch ground and the led ground go to the point on the power?

Question by mobow213    |  last reply


Plc-xe40 remote bypass

So iv been given two plc-xe40 projectors but I have NO REMOTE for either of them, so I'm trying to find a way of turning them on as they don't have any external buttons, but international they have places for 4 pin push buttons to be soldered on, but when link across I get nothing, iv also tried an app call Zaza (which is very cool) but still nothing, service manual is easily accessible online, I can buy a used remote but want to prove that they work. Iv looked over them eg thermal rest is fine, lamp is fine, micro sw is good and iv checked the voltage from the power board and there fine. I do need to check the p-fail protection circuit but in the manual it sez that a warning LED will come on if there's an issue but no led warning LED.

Question by jmh474    |  last reply


K'NEX SL8

Hey guys! Well, a couple days before BM and I posted our BM59 PARA, JonnyBGood asked me to build a SL8. At first I had a mind to turn him down, as SW already had an amazing one, but, in the end, I took him up on his offer, and this SL8 is my first installment. I am not quite finished with it yet, and it could use a bit more work, but over all, it is almost finished. I don't have much time to write about this gun now, so here is the features list: Features: Nice and sturdy Carry handle Great pin pull Looks boss with scope Great range: 50 - 60 ft. Nice stock Looks just like a SL8 (IMO) Well, that is all for now. Tell me how I could improve it before I post it. -The Red Book of Westmarch

Topic by The Red Book of Westmarch    |  last reply


Req for help with RIAA Eq (ripping LPs to HDD)

. I'm trying to dub/rip some LPs to digital and I think I have most of what I need (turntable, cables, sound card, capture software, encoders, pre-amp w/o eq) but I can't seem to find anything to handle the RIAA eq. I have an old stereo with phono preamp/eq, but it is not exactly hi-fi. As far as I can tell, all I need is a filter/plugin between the capture sw and encoder, but I can't seem to find anything. Any ideas? . Does anyone know what the shelf-life is for phono cartridges/stylii? I have some high quality carts/stys (Stanton, Ortofon) from the '80s, but I'm afraid the fulrums may have deteriorated. Are the carts/stys sold for DJ/disco use any good? . Anybody know of an Ancient Rippers site? On most of the sites I've found, vinyl is not in the vocabulary.

Topic by NachoMahma    |  last reply


Could I use a PIR sensor as a hands free on-off switch like in 1960s SciFi movies? Answered

I like the idea of waving my hand over a little dome to turn on or turn off an a/c device. I know a PIR can be used to actuate a circuit for a time period, but don't want the thing to turn back off until I'm ready. I would like to use the PIR to toggle on or off switch for the circuit only when I wave my hand over the sensor bulb. I'm sure this can be done, but I am not skilled enough to figure it out without a little help. I want to turn on or turn off the light on my night stand next to my bed. I could build a battery powered LED night light, but I want to use the circuit to control the a/c powered lamp. I am guessing I'd need a solid state relay or something to handle the 110 volt a/c for the lamp. Any help?

Question by Purphekt    |  last reply


Knex Recommendations list [Update 2]

Hey guys, ive been here for a while now, and ive built most of my favorite guns already, and im out of ideas. So id like for everyone of you guys to give me ideas of what to make, i need a time passer, ive been laying off the videogames for knex, but i dont know what to build anymore, so just tell me whatever you like, weapons, vehicles, or something. No ball machines or rides though, because i dont have those kinds of pieces/ i lost the balls to the sets. So anyways, id like to thank all of my followers and fans for everything, and im going to keep knexing! I honestly dont plan on leaving ever, so just keep giving me ideas, and ill be good :) List 1: SuperKriss Vector - Idea by Bwbt1   (Complete) -Link- Famas - Idea by Dr. Richtofen     (Complete) -Link-  -Build- Semi auto slingshot with mag / pump action slingshot with ratchet - Idea by Knex.X     (Pending) Transformer - Idea by AUG-5OM3 (Maybe, depends on whether i can or cant)     (Pending) Belt feed or 2 round burst - Idea by Johnhall44     (Pending) Breech loader / pistol / slingshot shotgun with 3 round burst - Idea by Knexbuild     (Pending) ~Thanks for the ideas, anymore will go into list 2~ P.S - The things on the list will be built in order by when people posted the comment with the idea. List 2: P90 - Idea by didexo   (Pending) M24 Bolt Action - Idea by johnhall44   (Pending) Halo SMG - Idea by knexlt   (Pending) Halo plasma rifle - Idea by knexlt   (Pending) Halo frag grenade - Idea by knexlt   (Pending) Halo Beam rifle - idea by knexlt   (Pending) Mg4 - Idea by knexlt   (Pending) M4A1 w/ Red Dot - Idea by knexlt   (Pending) ~Anymore will go into list 3. Pictures with your recommendations would help, thank you -SW~ List 3: Pistol/Rifle with motor - Idea by MrMuffin   (Pending) Kill zone 2 gun (Specified) - Idea by JohnHall44   (Pending) Full auto assault rifle / semi auto shotgun / semi auto w/ drum mag - Idea by BeanieOstrich   (Pending) AS-50 - Idea by InsaneKnexGuy   (Pending) ~Thank you very much guys, i love all these ideas! But I cant be doing them too often, ill get around to them when i have time,  (which is pretty often, since this is my off week form practice) and I have other things to do, but i will post asap when theyre done! Again, Thanks a lot, - SW ~ Oh, and P.S. list 4 wont be up for a while, please wait while i finished with at least List 1, because there are piling up, thank you!~

Topic by Senior Waffleman    |  last reply


Requesting feedback on a Fire Breathing Dragon test I did in metal wire.

I did this as a test, so no need to grind my gears about the lack of detail or the unfinished wings. Of course, if you feel passionately about it, feel free to grind my gears good and hard. I'd still like to know what ya'll think. Go to the link below for much larger pic if the thumb interests you at all...the thumb is almost useless. http://imageshack.us/a/img267/5623/firetesta.jpg Size wise, in its pose, there's just over 8" between wing tips, just over 5" head to tail, the "stream of fire" is about 5" long out of the mouth...the head is only 3/8" long by 3/16" wide. Made it with some stiffer than I'd expect steel wire I got at the dollar store ages ago, it's about half a millimeter wide...so it's around 24/25 AW/SW gauge I guess. The legs do look a little awkward in the picture, not at all in the hand or other pictures...but I couldn't get them to look right at the viewing angle I wanted to show...so anyway. Imagine it flying overhead burning a village or cooking a cow for dinner. Cheers.

Topic by Thrasym    |  last reply


assembly program

I have pic12f675. i have the neccessary asm and the header files.but i cannot compile it. please can you send me the hex file after compiling the program? as iam a student of class 8, idon't know how to compile. can you also send me the required steps? The required files are posted ;******************************* ;;LED FX.asm ;  11-3-2010 ;******************************* list p=12F629 radix dec include "p12f629.inc"   errorlevel -302 ; Dont complain about BANK 1 Registers during assembly __CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT  ;Internal osc. ;_MCLRE_OFF  - master clear must be off for gp3 to work as input pin ;**************************************************************** ; variables - names and files ;**************************************************************** temp1  equ 20h ; temp2  equ 21h ; temp3  equ 22h ; temp4  equ 23h ; jump  equ 24h ;jump value for table1 fadeUp  equ 25h fadeDwn  equ 26h sequences equ 27h sw_duration equ 28h testing  equ 29h ;**************************************************************** ;Equates ;**************************************************************** status  equ 0x03 rp1   equ 0x06 rp0   equ 0x05 GPIO   equ 0x05    status  equ 03h option_reg equ 81h   ; bits on GPIO     pin7  equ 0 ;GP0  LED C pin6   equ 1 ;GP1  LED B pin5  equ 2 ;GP2  LED A pin4  equ 3 ;GP3  Sw A  pin3  equ 4 ;GP4  Sw B pin2  equ 5 ;GP5  Sw C     ;bits     rp0   equ 5   ;bit 5 of the status register ;**************************************************************** ;Beginning of program ;****************************************************************   org  0x00   nop   nop   nop   nop   nop   SetUp bsf  status, rp0  ;Bank 1           movlw b'11111000'  ;Set TRIS  GP0,1,2 out   GP3,4,5 input   movwf TRISIO         ;    bcf  status, rp0  ;bank 0   movlw   07h          ;turn off Comparator ports         movwf   CMCON        ;must be placed in bank 0    clrf  GPIO         ;Clear GPIO of junk   call _memory   btfss gpio,5   ;SwA to: "record new sequence"    goto record     btfsc gpio,3  ;SwC removes attract sequence   goto $+.10    movlw 0FFh   bsf  status,rp0 ;select bank1   movwf EEDATA        bcf  status,rp0 ;select bank0   movlw .101   bsf  status,rp0 ;select bank1   movwf EEADR      bcf  status,rp0 ;select bank0   call  write     movlw .101   bsf  status,rp0     movwf EEADR           bsf  EECON1,0 ;starts EEPROM read operation storing result in EEDATA        movf EEDATA,w ;move read data into w   bcf  status,rp0      xorlw .8   ;look for 8 - for Attract mode   btfsc 03,2   goto Attract_Seq ;selected sequence will appear first   goto  Main         ;**************************************************************** ;* Tables    * ;**************************************************************** table1 addwf   PCL,F           ;02h,1  add W to program counter   retlw   .10     ;   retlw   .50         retlw   .30     ;   retlw   .50         retlw   .100     ;   retlw   .40  ; program starts at bottom of table   retlw   .10     ;   retlw   .50         retlw   .30     ;   retlw   .50         retlw   .60     ;   retlw   .10     ;   retlw   .50         retlw   .10     ;   retlw   .50         retlw   .100     ;   retlw   .20     ;   retlw   .50         retlw   .30     ;   retlw   .50         retlw   .70   retlw   .60     ;   retlw   .100     ;   retlw   .50         retlw   .100     ;   retlw   .50         retlw   .100     ;   retlw   .70     ;   retlw   .50         retlw   .30     ;   retlw   .50         retlw   .70     ;   table2 addwf   PCL,F           ;02h,1  add W to program counter   goto seq1     goto seq2     goto seq3     goto seq4     goto seq5     goto seq6     goto seq7     goto seq8     goto seq9     goto seq10   goto seq11       goto seq12  ;**************************************************************** ;* Delays    * ;**************************************************************** _xuS movwf temp2 _uS  movlw .10   movwf temp1   decfsz temp1,f   goto $-1      decfsz  temp2,f   goto  _uS    retlw  00   _ZuS movwf temp2   goto $+2   goto $+2    decfsz  temp2,f   goto  $-3    retlw  00  _xmS movwf temp2 _x  nop   decfsz  temp1,f   goto  _x   decfsz  temp2,f   goto  _x   retlw  00     ;5mS delay for increments in timing for "New Sequence"   _5mS movlw 05h   movwf temp2 _5  nop   decfsz  temp1,f   goto  _5   decfsz  temp2,f   goto  _5   retlw  00     _10mS movlw 0Ah   movwf temp2 _10  nop   decfsz  temp1,f   goto  _10   decfsz  temp2,f   goto  _10   retlw  00    _50mS movlw .50   movwf temp2 _50  nop   decfsz  temp1,f   goto  _50   decfsz  temp2,f   goto  _50   retlw  00   _100mS movlw .100   movwf temp2 _100 nop   decfsz  temp1,f   goto  _100   decfsz  temp2,f   goto  _100   retlw  00     _150mS movlw .150   movwf temp2 _150 nop   decfsz  temp1,f   goto  _150   decfsz  temp2,f   goto  _150   retlw  00       ;**************************************************************** ;* Sub Routines    * ;****************************************************************    _memory        movlw .48   movwf temp1   movlw 2Fh   movwf fsr   incf fsr,f   movlw 0FFh   movwf indf   decfsz temp1,f   goto $-4   retlw 00        ;SwB puts current sequence into EEPROM for turn on.      ;and puts "marker" in location 101      Attract   movf sequences,w ;put sequence number into w   bsf  status,rp0 ;select bank1   movwf EEDATA        bcf  status,rp0 ;select bank0   movlw .100   bsf  status,rp0 ;select bank1   movwf EEADR      bcf  status,rp0 ;select bank0   call  write   movlw .8   bsf  status,rp0 ;select bank1   movwf EEDATA      incf EEADR,1      bcf  status,rp0 ;select bank0   call  write    nop   goto $-1   ;Project must be turned off       ;Seq selected as Attract will be displayed when project turned on     Attract_Seq   movlw .100   bsf  status,rp0     movwf EEADR           bsf  EECON1,0 ;starts EEPROM read operation. Result in EEDATA        movf EEDATA,w ;move read data into w   bcf  status,rp0   movwf temp4   movf temp4,w      call table2    goto $-2    ;record new sequence - looks for "no switch pressed" for 1.25 seconds to exit   ;uses files 30h to 5Fh  (48 files)   ;three files per "step"   1st file = LEDs,  2nd = Off time, 3rd = on time   ;15 steps allowed - look for 5Dh   record btfss gpio,5  ;wait for release of button A   goto $-1   movlw 30h   movwf fsr   ;start storage at file 30h      ;look at keys being pressed - identifies 2 or 3 keys pressed together    _r1  clrf sw_duration _r1a call _5mS   incfsz sw_duration,1  ;5mS x 256 = 1.25seconds   goto $+2   goto Store  ;time out! store files 30h to 5Fh in EEPROM    btfss gpio,5  ;see if one or more Sw is pressed   goto $+5   btfss gpio,4   goto $+3   btfsc gpio,3   goto _r1a  ;no sw pressed create 2.5 sec timing        ;1,2,or 3 sw pressed     call _10mS  ;delay to detect 2 or 3 switches   incfsz sw_duration,1   goto $+2   goto Main    btfsc gpio,5  ;SwA   goto $+2   bsf  gpio,0  ;turn on LED A    btfsc gpio,4  ;SwB   goto $+2   bsf  gpio,1  ;turn on LED B    btfsc gpio,3  ;SwC   goto $+2   ;   bsf  gpio,2  ;turn on LED C        ;LEDs have been illuminated         movf gpio,w    movwf indf   ;w moved to fsr's file (30h+)       incf fsr,f     movf sw_duration,w ;off time!!   movwf indf   ;w moved to fsr's file (30h+)      incf fsr,f    clrf sw_duration       _r2  call _5mS   incfsz sw_duration,1       goto $+2   goto record  ;time out! keys pressed too long. Start again   btfss gpio,5   goto _r2   ;sw pressed   btfss gpio,4   goto _r2   ;sw pressed   btfss gpio,3   goto _r2   ;sw pressed          ;file empty. Put duration into file   movf sw_duration,w ;on time      movwf indf   ;w moved to fsr's file (30h+)       incf fsr,f     movlw 5Dh   xorwf fsr,w   btfss 03,2      goto $+2   goto Store  ;stop at 15 steps. store files 30h to 5Fh in EEPROM      clrf gpio    goto _r1          ;sequences:       ;seq1 Self-Programmed sequence    ;1St file:LEDs  2nd file:OFF time  3rd file:On time    seq1 bsf  status,rp0     clrf EEADR    bcf  status,rp0    bsf  status,rp0       bsf  EECON1,0 ;starts EEPROM read operation. Result in EEDATA        movf EEDATA,w ;move read data into w   bcf  status,rp0      movwf gpio   bsf  status,rp0   incf EEADR,1        bsf  EECON1,0 ;        movf EEDATA,w ;move read data into w   bcf  status,rp0    movwf temp4 ;this is OFF time. Store it   bsf  status,rp0   incf EEADR,1        bsf  EECON1,0 ;        movf EEDATA,w ;move read data into w   bcf  status,rp0    movwf sw_duration ;this is ON time   call _5mS   decfsz sw_duration,1   goto $-2   clrf gpio   call _5mS   decfsz temp4,f ;create OFF duration   goto $-2    bsf  status,rp0   incf EEADR,1        bsf  EECON1,0 ;        movf EEDATA,w ;move read data into w   bcf  status,rp0     xorlw 0FFh ;look for 0FFh - end of routine   btfss 03,2   goto $-31   retlw 00          ;seq2  chase right - very fast     seq2 bsf  gpio,0   call _100mS   bcf  gpio,0   bsf  gpio,1   call _100mS   bcf  gpio,1   bsf  gpio,2   call _100mS   bcf  gpio,2   call _100mS   clrf gpio   retlw 00     ;seq3  chase right     seq3 bsf  gpio,0   call _150mS   bcf  gpio,0   bsf  gpio,1   call _150mS   bcf  gpio,1   bsf  gpio,2   call _150mS   bcf  gpio,2   call _150mS   clrf gpio   retlw 00     ;seq4  chase right with off-delay at end     seq4 bsf  gpio,0   call _150mS   bcf  gpio,0   bsf  gpio,1   call _150mS   bcf  gpio,1   bsf  gpio,2   call _150mS   bcf  gpio,2   call _150mS    retlw 00     ;seq5  left right left right   seq5 bsf  gpio,0   call _150mS   bcf  gpio,0    bsf  gpio,2   call _150mS   bcf  gpio,2      retlw 00       ;seq6  middle on   middle off   seq6 bsf  gpio,1   call _150mS   bcf  gpio,1   call _150mS     clrf gpio     retlw 00         ;seq7  All on   all off   seq7 clrf gpio   call _150mS   decf gpio,f   call _150mS   clrf gpio       retlw 00     seq8 ;seq8  middle on then sides on      bsf  gpio,1   call _150mS   bcf  gpio,1   bsf  gpio,0   bsf  gpio,2   call _150mS   clrf gpio       retlw 00     ;seq9  police flasher  3 times left 3 times right   seq9 bsf  gpio,0   call _50mS   bcf  gpio,0   call _50mS   bsf  gpio,0   call _50mS   bcf  gpio,0   call _50mS   bsf  gpio,0   call _50mS   bcf  gpio,0   call _50mS    bsf  gpio,2   call _50mS   bcf  gpio,2   call _50mS   bsf  gpio,2   call _50mS   bcf  gpio,2   call _50mS   bsf  gpio,2   call _50mS   bcf  gpio,2   clrf gpio   call _50mS      retlw 00     ;seq10  random flicker   seq10 movlw .32  ;start at bottom of table   movwf jump   bsf  gpio,1   movf jump,w ;put table jump value into w   call  table1   call _xmS   bcf  gpio,1   decfsz jump,f   goto $+2   retlw 00  ;top of table found   movf jump,w ;put table jump value into w   call  table1   call _xmS      goto $-11       ;seq11  slow fade up down   seq11 clrf fadeUp  ;   clrf fadeDwn   incf fadeUp,f ;to create 1 (delay routine does not like 00)   bsf  gpio,1   movf fadeUp,w   call _xuS   bcf  gpio,1   movf fadeDwn,w   call _xuS         decfsz fadeDwn,f ;   goto $-8   incf fadeDwn,f ;to produce 1   bsf  gpio,1   movf fadeUp,w   call _xuS   bcf  gpio,1   movf fadeDwn,w   call _xuS   decf fadeUp,f     incfsz fadeDwn,f    goto $-8     clrf gpio   retlw 00       ;seq12  fast fade up down   seq12 clrf fadeUp  ;   clrf fadeDwn   incf fadeUp,f ;to create 1 (delay routine does not like 00)   bsf  gpio,1   movf fadeUp,w   call _ZuS   bcf  gpio,1   movf fadeDwn,w   call _ZuS         decfsz fadeDwn,f ;   goto $-8   incf fadeDwn,f ;to produce 1   bsf  gpio,1   movf fadeUp,w   call _ZuS   bcf  gpio,1   movf fadeDwn,w   call _ZuS   decf fadeUp,f     incfsz fadeDwn,f    goto $-8     clrf gpio   retlw 00        ;Store   Store the 15 steps in EEPROM    Store bsf  status,rp0 ;select bank1   clrf eeadr        bcf  status,rp0 ;select bank0    movlw .48   movwf temp1   movlw 2Fh   movwf fsr   incf fsr,f ;fsr starts at file 30h   movf indf,w ;retreive data in file 30h   bsf  status,rp0 ;select bank1   movwf eedata  ;   bcf  status,rp0 ;select bank0   call  write   bsf  status,rp0 ;select bank1   incf eeadr,1        bcf  status,rp0 ;select bank0   decfsz temp1,f   goto $-10   goto Main       write bsf  status,rp0 ;select bank1   bsf  eecon1,wren ;enable write    movlw 55h   ;unlock codes   movwf eecon2   movlw 0aah   movwf eecon2   bsf  eecon1,wr ;write begins   bcf  status,rp0 ;select bank0  writeA btfss pir1,eeif ;wait for write to complete   goto writeA   bcf  pir1,eeif   bsf  status,rp0 ;select bank1   bcf  eecon1,wren ;disable other writes   bcf  status,rp0 ;select bank0       retlw 00           ;**************************************************************** ;* Main        * ;**************************************************************** Main clrf sequences   movf sequences,w   call table2   btfss gpio,5  ;Is swA still pressed?   goto $-3   ;SwA still pressed    movf sequences,w ;SwA released   call table2   btfss gpio,4  ;SwB puts current sequence at turn-on   goto Attract   btfsc gpio,5   goto $-5   ;SwA not pressed   incf sequences,f   movlw .12   xorwf sequences,w   btfss 03,2   goto $-12   goto Main      ;**************************************************************** ;*EEPROM           * ;****************************************************************           org  2100h                 END

Question by sahebpanda2001    |  last reply


Replace 3-way light swtichs

  Hi Folks,   I have a small laundry room with two 3-way light switches and no outlets. I would like to replace both switches using one of these options: Replace "master" switch with combo switch/outlet (like Pass & Seymour TM838. Replace slave switch with an Occupancy Sensor Switch. -OR- Same has above but use a regular outlet instead of combo. If I have to I would be happy with disabling one of the switches and just have the Occupancy switch. I have posted photos of the wires coming out of the switches here: http://stellabotte.smugmug.com/Other-1/Electric/37036170_Zc4KSw/#!i=3075021321&k;=gGJ9vgJ The replacement switches are: Pass & Seymour TM838-WCC   Combination Sw/Outlet    Pass & Seymour RW3U600       Multi-Way Occupancy Switch   One side bar question, can any 3-way switch work with any other 3-way switch on the same circuit ? Thanks -Fred

Topic by fstellab    |  last reply


Convert airgun/Paintball gun to be fired by a computer (12v solenoid valve)

Hi!I have a project this summer where I need to convert a paintball marker and a co2 Airpistol to be fired by the use of a solenoid valve powered by 12v.The project goal is high-speed photography, more or less photographing object being hit by a projectile.What i need is a way to fire these guns precisely by the use of my computer and software, and since I already have plenty of 12 solenoid valves that work with this system I thought my easiest way is to adapt these valve to trigger the guns one way or another.I just purchased a Valken V-TAC SW-1http://www.valken.com/Marker-V-TAC-BLACKHAWK which I plan to use as base (for parts) My reason for getting this particular one was that it was on sale for 50% and seems to be fairly popular as it's based on the Tippmann 98 design.I attached an image of the valve I used with my controller and software (Cognisys Stop shot) now I can probably use any 12v solenoid valve (with the same spec ?) as the one I use now so it doesn't need to be these exact valves. As long as they can be operated by turning on-off power with the same powersource i use to control my current solenoid valves.From my understanding, most airguns use a pin valve, which is hit by a trigger mechanism that is then rearmed by the blowback.What would be the best way to modify an airgun for my needs? Replace the pin valve with a suitable solenoid i can control instead? Or go for a design that uses maybe use a piston and 2-way valve to hit that pin?The gun does not need to be mobile or ergonomic, it will be placed in a rig regardless, however keeping the barrel and keep the Picatinny is preferred to be able to mount marking aids etc. and mount the gun to a tripod.Any tips or suggestions are highly appreciated!Thank you!

Topic by PaulL320    |  last reply


Need advice for adding aux-in/line-in to Philips AE2160/00-A AM/MW/LW portable radio

Hey there, this is my first post! :) I'm from Germany, so please excuse my grammar! :D The reason why I'm opening up this new topic is, I didn't find any instructable or guide on how to add an aux-in/line-in to my simple mono AM/MW/LW radio Philips AE2160/00-A. There's not much to find out about the technical specifications besides the standard product information: Tuner • Analogue tuning • Wave ranges FM 87.5 - 108 MHz MW 525 - 1606.5 kHz /04 LW 150 -255 kHz /00c FM/MW /04 FM/MW/LW /05 FM/MW/LW • Ferroceptor for MW (and LW) • Telescopic aerial for FM (and SW) Amplifier • Max. output power 300 mW RMS • Tone control Music /News Sound system • Loud speaker 100 mm • Metal grill Power supply • External supply /00c, /04 230V /05 240V AC • Batteries 2 x 1.5V , type R20/D cell/UM1 Connections • Headphone socket 3.5mm General • Material Polystyrene, metal grill • Weight (g) 520 • Dimensions (mm) 210 W x 150H Here's a link to a photo of the device: http://images.philips.com/is/image/PhilipsConsumer/AE2160_00-_FP-global-001?wid=2000&hei;=2000&$jpglarge$ I didn't even find schematics/circuit diagrams for this or a similar device. There are lots of tutorials on how to add such an input to a car radio or a boombox/stereo cassette player a.s.o., but not for a simple AM/MW/LW radio. My questions are: 1.) Are there any similar hack projects here in the step-by-step or forum section? 2.) How do I find the right connector or place to solder a 2-way-switch between the sections (tuner, amp, speaker)? After the hacking job, it should be possible to switch between normal radio listening mode and aux-in/line-in mode from an external mp3 player, notebook, a.s.o.. 3.) Is there anything else to know for this project? Yesterday I've opened up the case for the first time and looked over the circuit board and the connections. I had no cam to take pictures, but I try to take some mobile phone cam pictures of the circuitry and parts at the next opportunity! Cheers, arok1

Topic by arok1    |  last reply


how to combine 2 Arduino codes together ?

Hello, I have a question. I need to combine my code for my Arduino project. I'm using a Arduino micro board .  The 2 codes are maxsonar and another is a flying drones coding. I'm lost and don't know how to combine the both of them as the maxsonar code will overwrite the flying drones code causing it unable to fly. Maxsonar code const int anPin1 = 0; const int anPin2 = 1; int triggerPin1 = 13; long distance1, distance2, cm1 ,cm2; void setup() {   Serial.begin(9600);  // sets the serial port to 9600   pinMode(triggerPin1, OUTPUT);   pinMode(A5, OUTPUT);   pinMode(A11, OUTPUT); } void start_sensor(){   digitalWrite(triggerPin1,HIGH);   delay(1);   digitalWrite(triggerPin1,LOW); } void Fading()//led1 { if (distance1 == 9) {    analogWrite(A5,25.5);     delay(10); } else if (distance1 == 8) {    analogWrite(A5,76.5);     delay(10); } else if( distance1 == 7) {    analogWrite(A5,153);     delay(10); } else if(distance1 == 6) {    analogWrite(A5,255);     delay(10); }   }   void Fading2()//led1 {   if (distance2 == 9) {    analogWrite(A11,25.5);     delay(10); } else if (distance2 == 8) {    analogWrite(A11,76.5);     delay(10); } else if( distance2 == 7) {    analogWrite(A11,153);     delay(10); } else if(distance2 == 6 ) {    analogWrite(A11,255);     delay(10); }   }   void read_sensors(){   /*   Scale factor is (Vcc/512) per inch. A 5V supply yields ~9.8mV/in   Arduino analog pin goes from 0 to 1024, so the value has to be divided by 2 to get the actual inches   */   distance1 = analogRead(anPin1)/2;   distance2 = analogRead(anPin2)/2; } void count_in_cm() {   cm1 = distance1 * 2.54;   cm2 = distance2 * 2.54; } void print_all() {     if( distance1 <10 && distance2 >=10 )   {   Fading();   analogWrite(A11,0);   Serial.print("Sensor1: Warning");   Serial.print(" ");   Serial.print(" ");   Serial.print("S2");   Serial.print(" ");   Serial.print(distance2);                                                                                                                                                                                                                                                                                                              Serial.print("in");   Serial.print(" ");   Serial.print(" ");   Serial.print(cm2);   Serial.print("cm");   Serial.println();   delay(700);     }   else if(distance1 >= 10 && distance2 < 10)   {   Fading2();   analogWrite(A5,0);   Serial.print("S1");   Serial.print(" ");   Serial.print(distance1);   Serial.print("in");   Serial.print(" ");   Serial.print(" ");   Serial.print(cm1);   Serial.print("cm");   Serial.print(" ");   Serial.print(" ");   Serial.print("Sensor2: Warning");   Serial.println();   delay(700);   }   else if (distance1 < 10 && distance2 < 10)   {     Fading();     Fading2();     Serial.print("Sensor1: Warning");     Serial.print("  ");     Serial.print("Sensor2: Warning");     Serial.println();     delay(700);      }   else   {   analogWrite(A11,0);   analogWrite(A5,0);   Serial.print("S1");   Serial.print(" ");   Serial.print(distance1);   Serial.print("in");   Serial.print(" ");   Serial.print(" ");   Serial.print(cm1);   Serial.print("cm");   Serial.print(" ");   Serial.print(" ");    Serial.print("S2");   Serial.print(" ");   Serial.print(distance2);   Serial.print("in");   Serial.print(" ");   Serial.print(" ");   Serial.print(cm2);   Serial.print("cm");   Serial.println();   delay(700);   } } void loop() {   start_sensor();   read_sensors();   count_in_cm();   print_all();   delay(200); //This is the equivant of the amount of sensors times 50.  If you changed this to 5 sensors the delay would be 250. } flying drone code #include #include // channel declaration Servo channel1; // throttle Servo channel2; // yaw Servo channel3; // pitch Servo channel4; // roll Servo channel5; // ball drop servo // PWM freq setting, should it be 62.33Hz? const int PWMConst = 20022;//50HZ // global variables byte incomingByte, incomingByteUSB; byte rcBuffer[32], usbBuffer[12]; int i = 0, j = 0, STATE = 1; int Flag = 0, usbFlag = 0; unsigned int thr_16int = 0, yaw_16int = 0, pit_16int = 0, rol_16int = 0, gear_16int = 0; unsigned int thr_16int_usb = 0, yaw_16int_usb = 0, pit_16int_usb = 0, rol_16int_usb = 0; float throttle = 1000, roll = 1500, pitch = 1500, yaw = 1500; int gear = 1500; float currT, prevT = 0, _flagHover, throFlag; // functions declaration void extract_RC_cmd(void); void extract_USB_cmd(void); void translate_RC_cmd(void); void translate_USB_cmd(void); void RC_Neutral(void); void reset_usb(void); void reset_rc(void); void hover(void); void sonar(void); void setup() {   // setting registers   TCCR1A = _BV(COM1A1) | _BV(COM1B1);   TCCR1B = _BV(WGM13) | _BV(CS11);   ICR1 = PWMConst;   // set PWM I/O ports   channel1.attach(6);    // throttle   channel2.attach(9);    // yaw   channel3.attach(5);    // pitch   channel4.attach(10);    // roll   channel5.attach(11);   // fail safe-attit   //init usb buffer   usbBuffer[0] = 0x03;   usbBuffer[1] = 0xE8;   usbBuffer[2] = 0x0D;   usbBuffer[3] = 0xAC;   usbBuffer[4] = 0x15;   usbBuffer[5] = 0x7C;   usbBuffer[6] = 0x1D;   usbBuffer[7] = 0x4C;   reset_rc();   reset_usb();   Serial1.begin(115200);   // rc Rx data in   Serial.begin(115200);     // USB } void loop() {   // accept serial data from computer   if (Serial.available() > 0)   {     incomingByteUSB = Serial.read();     if (incomingByteUSB >= 0x03 && incomingByteUSB <= 0x07)     {       usbFlag = 1;     }     if (usbFlag == 1)     {       usbBuffer[j] = incomingByteUSB;       j++;       if (j == 12)       {         usbFlag = 0;         j = 0;         extract_USB_cmd();       }     }   }   // accepte serial data from RC   if (Serial1.available() > 0)   {     incomingByte = Serial1.read();     if (incomingByte >= 0x80 && incomingByte <= 0x87)     {       Flag = 1;     }     if (Flag == 1)     {       rcBuffer[i] = incomingByte;       i++;       if (i == 32)       {         Flag = 0;         i = 0;         extract_RC_cmd();       }     }     // Serial.print(rcBuffer[i]);   }   // STATE MACHINE   switch (STATE)   {     case 1:       translate_USB_cmd();       reset_rc();       //Serial.print();       break;     case 2:       translate_RC_cmd();       reset_usb();       //Serial.print('R');       break;     case 3:       landing();       break;     default:       RC_Neutral();       break;   }     // output PWM   channel1.write(throttle);   channel2.write(yaw);   channel3.write(pitch);   channel4.write(roll);   channel5.write(gear); } // local functions void extract_RC_cmd() {   if (rcBuffer[0] >= 0x80 && rcBuffer[0] <= 0x87) // double check throttle range   {     thr_16int = rcBuffer[0] << 8 | rcBuffer[1]; // 16 bit throttle     // Serial.print(thr_16int);   }   if (rcBuffer[4] >= 0x19 && rcBuffer[4] <= 0x1E) // double check yaw range   {     yaw_16int = rcBuffer[4] << 8 | rcBuffer[5]; // 16 bit yaw     //Serial.print(yaw_16int);   }   if (rcBuffer[16] >= 0x09 && rcBuffer[16] <= 0x0E) // double check yaw range   {     rol_16int = rcBuffer[16] << 8 | rcBuffer[17]; // 16 bit yaw     //Serial.print(rol_16int);   }   if (rcBuffer[20] >= 0x11 && rcBuffer[20] <= 0x16) // double check yaw range   {     pit_16int = rcBuffer[20] << 8 | rcBuffer[21]; // 16 bit yaw     //Serial.print(pit_16int);   }   if (rcBuffer[22] >= 0x21 && rcBuffer[22] <= 0x26) // double check gear range   {     gear_16int = rcBuffer[22] << 8 | rcBuffer[23]; // 16 bit pitch     //Serial.print(pit_16int);   }   // state   if (rcBuffer[24] == 0x37 && rcBuffer[25] == 0xE0)    // Fmode SW state 1: Auto   {     STATE = 1;   }   else if (rcBuffer[24] == 0x34 && rcBuffer[25] == 0x00) // Fmode SW state 2: Manual   {     STATE = 2;   }   else if (rcBuffer[24] == 0x31 && rcBuffer[25] == 0xB4) // Fmode SW state 3: Emergency landing   {     STATE = 3;   } } void extract_USB_cmd(void) {   if (usbBuffer[0] >= 0x03 && usbBuffer[0] <= 0x07) // double check throttle range   {     thr_16int_usb = usbBuffer[0] << 8 | usbBuffer[1]; // 16 bit throttle   }   if (usbBuffer[2] >= 0x0B && usbBuffer[2] <= 0x0F) // double check yaw range   {     yaw_16int_usb = usbBuffer[2] << 8 | usbBuffer[3]; // 16 bit yaw   }   if (usbBuffer[4] >= 0x13 && usbBuffer[4] <= 0x17) // double check pit range   {     pit_16int_usb = usbBuffer[4] << 8 | usbBuffer[5]; // 16 bit pitch   }   if (usbBuffer[6] >= 0x1B && usbBuffer[6] <= 0x1F) // double check rol range   {     rol_16int_usb = usbBuffer[6] << 8 | usbBuffer[7]; // 16 bit role   }   // state   if (usbBuffer[10] == 0x2A && usbBuffer[11] == 0xF8)   {     //state = 1; // auto   }   else if (usbBuffer[10] == 0x2C && usbBuffer[11] == 0xEC)   {     STATE = 3; // emergency landing   }   else if (usbBuffer[10] == 0x2E && usbBuffer[11] == 0xE0)   {     STATE = 0; // default rc neutral   } } void translate_RC_cmd(void) {   throttle = (thr_16int - 30752 ) / 2.016;   yaw   = (9243 - yaw_16int) / 1.382;   pitch = (pit_16int - 3047) / 1.378;   roll  = (5129 - rol_16int) / 1.373;   gear  = (gear_16int - 7506) / 1.165;   throttle = min(2000, max(1000, throttle));   yaw      = min(2000, max(1000, yaw));   pitch    = min(2000, max(1000, pitch));   roll     = min(2000, max(1000, roll));   gear     = min(2000, max(1000, gear)); } void translate_USB_cmd(void) {   throttle = thr_16int_usb;   yaw = yaw_16int_usb - 2000;   pitch = pit_16int_usb - 4000;   roll =  rol_16int_usb - 6000;   //Serial.print(thr_16int_usb);   throttle = min(2000, max(1000, throttle));   yaw      = min(2000, max(1000, yaw));   pitch    = min(2000, max(1000, pitch));   roll     = min(2000, max(1000, roll)); } void RC_Neutral(void) {   throttle = 1000;   yaw = 1500;   pitch = 1500;   roll = 1500; } void landing(void) {   throttle = throttle - 1;   if (throttle <= 1000) throttle = 1000;   yaw = 1500;   pitch = 1500;   roll = 1500; } void reset_usb(void) {   thr_16int_usb = 1000;   yaw_16int_usb = 3500;   pit_16int_usb = 5500;   rol_16int_usb = 7500; } void reset_rc(void) {   thr_16int = 0x8000;   yaw_16int = 0x1C03;   pit_16int = 0x13FD;   rol_16int = 0x0C07; }

Topic by singno123    |  last reply