The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for flip clock in Topics

Pimp my flip clock!

Hello dear Instructables community, I need your help:I have 2 flip clock, The 1st one is a regular flip clock, just for time that works with 2 AA batteries, there's 2 lever or switch at the back that allow me to adjust the time. The 2nd clock works with 1 AA battery.... the battery is only for the analog clock, it doesn't change the date or day of the week, I have to do it manually (there's a button for each).I would like to link them together: when the time turns midnight, I want the other clock to change date and day of the week. Both clock would be in the same frame (I know how to do that). I'm sure I can do it, but I need to know what pieces I need to use so they can work together, I need your help dear community!Thanks a lot in advance,Nick

Question by Nicolas N GenevièveC  

D-Flip Flop and Clock Alarm

Hey there! I'm trying to hook up one Set Pin of a 74LS74 Double D-Flip Flop to the alarm of my clock. I've already desoldered the annoying buzzer thats been there before and am now measuring the voltage provided to the buzzer. Unfortunately the circuit only provides around 0.1-0.7V (crescendo alert) with each beep, which doesn't seem to be enough to raise the Set Pin to HIGH (0.8V min. I think). So I guess I'm supposed to use some kind of transistor now. Just to make sure I'm asking you guys. Also, if I want to run the clock from a 5V DC wall wart instead of the original 1.5V battery, I suppose the only thing I need to add are some resistors in series. Would that be correct or would there be anything else needed to ensure the clock takes no damage? Would be really nice if someone could help me out with this! Best regards, Philipp

Topic by Christoph680  

Is there a way to make a "flip clock" from scratch.?

I have always liked the look of flip clocks and i was hoping that someone knows how and can make an instructable about it.

Question by StarshipMcGee    |  last reply

How to make Flip Clock Numbers and build a "like"-counter around it?

Hey All So I've got this client, who's absolutely crazy about the "FLIKE" (A physical like counter.). But he can't have it for another couple of months, and he'd like it to be a little more custom... Long story short, I might end up making a similar product in a few weeks. it will probably consist out of 5 digits and if it's up to me (not sure what the client wants) I'd stuff them behind a long picture frame. Something like this but actually mechanical and not just a picture of it: So I started googling every hardware piece I needed and it turns out it's a huge pain to find Flip Clock Numbers / Flip Board Numbers... whatever you want to call them. (What's the right name btw?) You can't just buy these things, let alone in a custom size. So the idea is to build them myself. I found this on wikipedia, which gives a clue about the inside: So I'm figuring out what needs to go in it to make this work. (I'll end up making an instructable about it) The numbers themselves are going to be made out of vinyl stickers. You can easily buy those from ebay in about any size if you look for them. The stickers will be put on to plastic boards. But I'm not totally sure what kind I should get. They should be thin and must be able to stand up straight, yet "easy" to fold. I'll probably get them lasercut, but you should be able to cut them by hand as well. Currently I'm thinking about gluing small metal or carbon rods on the back of those letters. Although I'm not sure if that would be strong enough. Would it be enough to file one side of the rods to get a bigger contact surface? (What do you guys think?) I'm planning of putting the half letters in a drum of ABS or PLA. it should be shaped like this:  |--------| I'm thinking about 3D printing this. But no idea how it'll do... One side of the drum will be connected to a small stepper motor (5.625° with 1/64 reduction). I don't have real experience with stepper motors, but this resolution seems more than sufficient. The other side will be connected to a metal or plastic positioner. Each digit might end up with it's own "unit" so I can swap them separately if they'd break. I've got great experience with lasercut plexi, so I might use that because it's more accurate than wood and I might have some lying around. I was first thinking about 1 stepper motor and a set of gears. I decided not to do that in the end because I don't have good experience with making gears and I can never find the right sizes online. Also, it'll make everything way more complex. So each motor will have it's own controller connected to it. Those controllers would have to talk to an ATMega or something. (I'm planning on using an arduino to prototype, but then just swap the chip and make a stand-alone version without usb etc) The ATMega has to be connected to the internet of course to get the current number of likes, so I'd connect it to a raspberry pi via I²C. I'm not familiar with the GPIO pins on the pi so I figured this would be a save and convenient way to handle this. The ATMega is robust, and I love the Arduino bootloader. A sketch is written in no time, but I have no idea how to start writhing this code for the GPIO pins. So why the Raspberry Pi? First off, this thing might end up being wireless, and since a wifi module for the arduino costs as much as a Pi, I figured this would be easier. The plan is to make the pi run python script that could ask the number of likes from the facebook API. Once returned, it'll send +1 or +5 or +10 over I²C. The arduino shifts the numbers to the correct position and replies with the total number it's displaying (3012 for instance). The PI can then recheck if everything is in sync. As for the set up. Since we have Pi, we can put on a LAMP stack (I know, this is overkill, but it wouldn't hurt either). So for initial set-up, we'd connect the counter to ethernet, browse to it on a different computer via "http://counter.local". And we'd be presented with a web interface. You'll be able to set the URL of the page u want to get the likes from, set and reset the number that is displayed on the counter, and the WIFI settings. The WIFI settings can be saved in the wpa_supplicant.conf file and on reboot it'll automatically connect to this network. From now on the whole system is manageable over wifi via a html interface. For debugging I might enable ssh though. So I guess you've got the whole outline now. I'd like to get your feedback on this! And this for the mechanics, electronics, and software side of things! 

Question by woutervddn    |  last reply

What DC adapter does this clock use?

 Someone was throwing away this HoMedics ss-5000 alarm clock, and I "rescued" it. The DC adapter wasn't with it, though, so I want to find a replacement for it. (Without the adapter, it won't give any features besides the time and temperature.) Might any of you possibly have this clock and/or know what specs its adapter has?  Thanks,   Win Guy P.S. I'm sorry that the photos are sideways, the camera I used auto-flips images that are taken at an angle, and that was the only way that I could take the pictures without the flash coming back and glaring in the lens.  UPDATE! I found a really old variable voltage adapter, but it has a fixed amount of amperage: 300mA. In any case, today I'll open the clock and check the polarity. From there, it'll probably be smooth sailing. Thanks to everyone who responded to my post!  But this question is still open to people who have this clock who can tell me exactly what the specs are.

Question by Win Guy    |  last reply

What does this chip actually do? Answered

Its labeled MACH210-15JC-18JI I've looked over the data sheet, and it says: 44 Pins 64 Macrocells Peripheral Component Interconnect (PCI) compliant 32 Outputs 64 Flip-flops; 2 clock choices 4 “PAL22V16” blocks with buried macrocells So, it holds data bits with flip flops? In the specs it says D or T type flip flop. Its programmable, but what does it mean by that, how would you "program it" it has 44 pins, and some I/O. What do you think the applications of it are? I have the pinout, but that doesn't really do any good if I can't figure out how to "program it"... It can run at 133MHz tops, but if this was memory there would need to be a section that says when to read/write on rising or falling edge of said clock. It doesn't say that. EDIT: So.. what does High-Density EE CMOS Programmable Logic mean? Sorry for the questions lately, just trying to figure stuff out

Question by Mudbud    |  last reply

What makes the "clicky clicky" noise when you switch on your turn signal?

I was planning on making a "How to Make a Suspicious Object" Instructable, but I'm at a loss for making a loud tick-tock noise. I haven't been able to find a clock with a tick loud enough to be noticeably audible through the box.Perhaps I should elaborate a little on my goal... I want to create a couple of very questionable-looking objects. Think cardboard box wrapped in electrical tape with wires sticking out from it. But that's just the start. Of course we'll need a clock-like tick, and perhaps even a count-down timer! Some tilt-sensitive vibrating motors, etc. :PAs of right now, it'll just be for fun, some electronics experience, some laughs, etc.Which leads me to: What makes the clicky-clicky noise when you flip on your turn-signal?Update:Darn! Someone beat me to it! Apparently Junkfunnel Labs is way ahead of me. Here's the video.

Topic by carbon    |  last reply

Simple Quadcopter using Arduino Uno?

Hello guys I am making a quadcopter using Arduino uno. My first simple aim is to lift and hover the quadcopter.  To achieve this aim  I have connected the signal Wire of all the ESC's to arduino Pin 9 and giving throttle via node server using bluetooth module and johnny five library.  My quadcopter lifts from 2 sides (flips) and sometimes little bit from 3rd side also.  Can anyone suggest me anything ? The thing which I am doing giving equal throttle to all motor, Is it right ? or  should I give more throttle to clockwise and little less throttle to counter clock wise motors. I will be very thankful, if you guys help me to lift my quadcopter

Question by nishanksingla    |  last reply

Seach has failed me. :(

Hey all,I'm new here, but i've made a tonne of things from this site, and always forget to register. ANYWAY, i came across something a few weeks back, and i just cannot find it again. Please please please help me.I think i was looking for something on how to make LED's react to sound or possibly a guitar valve amp or a spectrum analyser, when i came across it. It was some sort of LED or filament bulb or something, that was being built as a decoration. I'll try to be as descriptive as i can here. The actual LED/Light thing wasn't an LED. It looked like a filament bulb, but instead of it just being a light, it made symbols, text etc etc. It wasn't like a segment led or anything led related, it looked more like a filament in it. The lamp itself was box shaped, and it looked like it was about 50mm x 50mm x 50mm. I can't even remember the name of what that lamp display type thing was. There were a few things i've come across that remind me of what that thing was. It was a bit like a display version of one square of one those old school alarm clocks where the numbers flipped down?Sorry if this is a bit vague, i'm hoping it might jog someone's memory?

Topic by trad3mark    |  last reply

(newsletter) Automatic Cat Feeder, Silk Spectre Costume, Funnel Cake...

Sign-up for this newsletter: Welcome back! Mega Contest: It's our most awesome Halloween Contest ever! Any Instructable published since the last Halloween contest is eligible! Win great prizes from Singer, Dremel, Ponoko, Monkeylectric, Photojojo, and an Instructables Pro Membership! Arduino Contest - Make anything involving Arduino and win an Arduino Mega or a sweet prize from Evil Mad Science! Vote Now: Digital Days Photo Contest - Vote for your favorites! Want a more convenient version of Instructables with fewer ads? Get a Pro Membership! Cat Powered Auto Feeder Tasty Homemade Funnel Cake Loop Back Lacing Easy iPhone Alarm Clock Stand Dozens of great prizes in six categories!  Win sweet prizes from Evil Mad Science! Build a Wireless Camera Controller Silk Spectre Costume Analog Electricity Usage Meter Bunch of Grapes Dog Costume   Single HD Gyro Image Stabilizer Create a Realistic Burn with Makeup Pet-Resistant Chick Brooder Cheap and Easy Steampunk Keyboard Little costumes for the big day!  Turn your home into a House of Terror! Electronic Door Opener How to do a Flip Turn Create Real Working iPod Costumes Portable, Paperless, Digital Copier   Now go make something awesome, and I'll see you next week! - Eric - 82 2nd St. - San Francisco, CA Sign-up for this newsletter:

Topic by fungus amungus    |  last reply

(newsletter) Nintendo Arcade, 5-Minute Pie, Drum Smoker...

Sign-up for this newsletter: Welcome back! Converse Back to School in Style Contest - Make or customize anything school-related and win a gift card so you can make your own Converse shoes! SINGER Kids Crafts Contest - Create something crafty with or for a kid and win a sweet new serger or sewing machine from SINGER! Forbes Teach Me Fast Contest - Make a 30-second how-to video and win an awesome Flip MinoHD video camera! Winning videos will be featured on Gorilla Glue Cardboard Contest - Build anything using cardboard, and win a huge package of Gorilla Glue supplies and gear! Vote now for the finalists in the Low & Slow BBQ Contest! 5-Minute Pie Portable Mini Vocal Booth LED Replacement Fluorescent Tube Recycled Plastic Messenger Bag Submit a cardboard creation and win a prize pack from Gorilla Glue! Get crafty! Cardboard Frisbee Lock a Deadbolt from Outside without a Key Cardboard Red Dragon Make a Drum Smoker Captain Kirk's Chair Extremely Loud Alarm Clock Beehive Bookcase No-Knead Brick Oven-style Pizza Share something cool quickly! Win a pair of customConverse shoes! Pie Pops Laptop Stand from IKEA Parts Plush Cell Model Build a Nintendo Arcade Sign-up for this newsletter:

Topic by fungus amungus    |  last reply

Gravity Lamp, the LED lamp powered by gravity

A Virginia Tech student designed an LED lamp that is powered by gravity. It is called the Gravia, and it took second place at the Greener Gadgets competition in NYC. Gravity as a renewable energy source? Amazing!From illustrations of Gravia depict an acrylic column a little over four feet high. The entire column glows when activated. The electricity is generated by the slow fall of a mass that spins a rotor. The resulting energy powers 10 high-output LEDs that fire into the acrylic lens, creating a diffuse light. The operation is silent and the housing is elegant and cord free – completely independent of electrical infrastructure.The light output will be 600-800 lumens – roughly equal to a 40 watt incandescent bulb. Each drop of the gravity mechanism runs the light over a period of four hours.To "turn on" the lamp, the user moves weights from the bottom to the top of the lamp. An hour-glass like mechanism is turned over and the weights are placed in the mass sled near the top of the lamp. The sled begins its gently glide back down and, within a few seconds, the LEDs come on and light the lamp, Moulton said. “It’s more complicated than flipping a switch but can be an acceptable, even enjoyable routine, like winding a beautiful clock or making good coffee,” he said.Moulton estimates that Gravia’s mechanisms will last more than 200 years, if used eight hours a day, 365 days a year.The winner of the Greener Gadgets competition was the Enerjar.

Topic by Brennn10    |  last reply

Neotech NT7086 display and arduino?

I found a couple of these older looking dot matrix LCDs in some electronic logbooks that didnt work. it was a 14 pin connector, so i figured why not try it out. i found the pinout of each pin using the chips that were on board, but i don`t know where to go from here, or if i should even bother. the display was made by or for hantronix, and they have a touch layer that could be used as well. each display has 7 of the NT7086PQ chips on it, a 74HC74D, a 74HC40103D, and an LM324. it was originally connected via a flat flex cable, but it had a convenient place for headers to plug it into a breadboard. the 74HC40103D is an 8-bit synchronous binary down counter: the 74HC74D is a Dual D-type flip-flop: the Neotech chips are LCD display drivers: upon inspecting the physical properties of the display I can see there are the rubber/carbon edge contacts on two sides and a ribbon on one end. The pinout i figured out is: 14 is GND 13 is base on SOT23 transistor     (connected to 12 on parent board) 12 collector on a SOT23 transistor 11 gets pulled low at some point (pulled low on parent board) 10 is power 9 is cl2          (unactive high?) (on one set of neotech chips, assuming the edge contact drivers) 8 Clock input (74HC40103D) 7 does nothing 6 is d4 on one chip? 5 is display off  (active low) 4 is d4 3 is d3 2 is d2 1 is d1 So i would appreciate any input people have. I would ideally like to drive this using an arduino/atmega, and although i have not read the neotech datasheet to much depth it would appear to work similar to the popular parallel displays, but maybe with different syntaxes. so is this a possible thing, or is it a fruitless endeavor? thanks in advance.

Question by zack247    |  last reply

Is my book good ?

Well i hate to bother anyone but can you please take some time to read this book i worked hard on ? i spent  countless hours of my free time over the weekend developing the plot and creatures so can you please take some time out to read the whole thing tell me what it needs or what would be good i already am 16 pages into the sequel so tell me if this is good so i can post the sequel ! enjoy Times come by Alby Chapter 1- beginning It was the night I would never forget,the night.......i....the......the last night I would enjoy life. It was spring of 2017 the night air was heavy in my lungs and you could faintly smell the BBQ and charcoal smoke from cookouts that died down hours ago I could here people talking and having a good time but I think my drink I grabbed the wrong beer it was Sarah's it was spiked I never would have noticed who did it at least it wasn't her to drink it. I simply enjoyed the sky line of Chicago filled with sky scrapers and mirror like office buildings it all seemed like a Bokeh picture to me the drug is taking affect on my body I feel dizzy . I hopped on the train, it was empty as for the weather gave a good reason to walk but I needed to get home safely. In about 30 minutes I was home. I clumsily walked up the stairs and almost fell it took about ten minutes before I opened the door, I then plopped down on my bed and ran to the bathroom and regurgitated everything I ate that night. i starred at the ceiling. I saw every detail to the nearest centimeter and then blurry the specks the marks swirled in my vision and I felt weightless for a while. I starred at the clock and noticed it was about 4:00 am and cursed myself for going to that bar with Sarah I threw up all over my bed. I tried to grab the phone to call the paramedics but I fell and hit my head on my night stand. I passed out from the concussion i fell into a deep sleep a very deep sleep. Chapter 2 Change I wiped the crust out of my eyes and felt my head a sharp pain rippled thru my scalp it was a Gash about two inches in length. i walked into the bathroom I pulled the faucet but all that came out was a wisp of air. I snatched a baby wipe and cleaned off my face I cleaned my wound with alcohol the sting ive gotten used to I used to get hurt pretty bad in the army, I got shrapnel in my knee and they sent me home the first year. I noticed a dead silence on the street I thought they probably closed it off for some type of repair. I put on my white tee shirt and noticed its softness and how it fit snug on my semi-muscular figure I was in good shape for a twenty-four year old, my mom would always tell me most of the people in America are fat but I guess she loves to tell stereotypes for what they are. I put on my jeans and not forgetting the belt this time either. I snatched my keys off the kitchen counter and headed for the door. I walked outside and paused too look at the empty streets filled with litter and carnage . My mouth wide open in amazement I asked myself what happened and pondered the different reasons riot,panic,fire what could cause such a mess, I walked towards a police squad car and smelled something rancid I slowly proceeded, I instantly veered back in panic I could not believe what I saw a dead police officer lying face down with half a chunk blown clean off his head. There were pieces of it every where splattered on the windshield and door of the police car and some on the concrete. I instinctively inched towards him and thought to myself that something bad is happening and I need protection. I unhooked his holster off his waist and placed it on mine I pulled off his Kevlar vest and put it on weirdly enough it barely was messy or smelled bad. I checked the pockets of the vest and took out a pair of keys I knew it belonged to his squad car. I first popped open the trunk and saw it glistening in the sun a Ar-15 assault rifle. I picked it up and the memories of my army training it just instantly popped into my mind. I guess it applied the same here, I slung it around my back and walked into the silence. I took out the pistol put in the clip pulled the slide back and switched the safety off and cautiously held it. I believe the gun made me more nervous than whats in the shadows, I walked down the narrow street and saw it the skyline of the city filled with smoke and fire. I stood in anger and confusion my home town ravaged broken and charred blood stained the streets and walls, but could this... I mean what such a thing. I walked away in the opposite direction and then cut into an alley way to piss and paused as I heard a roar I looked up and saw a quick glance of the belly of a apache attack craft it quickly zoom by and then another. I looked away and ran out of the alley and then down the street to see what direction they were heading. They sped towards the lake area and then I saw a tiny black object fall horizontally from the choppers belly and it slowly fell, then a explosion. I could feel the vibrations. the explosion ripped the lake area into nothing....nothing..but....but...smoke. My heart skipped a few beats thinking what if the next one falls in this area I quickly broke my daydream and bolted as fast as I could as far as I could until I saw a woman crawling on the concrete she was Moaning and holding her stomach. I came up behind her and asked for help. She turned on her back “ Sarah? Ohh my god sarah are you okay ?” and she held a gun in her hand a Glock 22 model the slide locked all the way back and no clip in the gun. I kicked it out of her and and sprung on her she begged for mercy “albert you have to stay away from me im turning” she saw that I was armed and quickly told me the gun was unloaded and that she was sorry she told me she would do anything just get away from her . I told her “Im not here to hurt anyone I just want to help” I starred at her beautiful figure her perfect face and thin hourglass body but ragged cloths and red eyes from crying. How and what did she go thru that could turn her into such a wreck. She got up and put her arm around my shoulder kissed me on the cheek and passed out. I dragged her to an fenced off alley where there was a mattress I put her down and sat next to her .she hugged me and began to cry she than jumped on top of me “Sarah what are you doing no we cant do this now no!” I told her I will help her but I dont think she understood a word I said. She looked at me in my eyes I could feel her touch my soul, her blue eyes glared in the sun. “i dont want to die alone please” I stood up nervously, I was concerned for her health when suddenly I heard a bang then felt a sharp pain in my leg. I collapsed in agony and saw the cause of my pain a bean bag round I looked up and saw a gas mask wearing figure he shot me with another bean bag round in the knee, from his shot gun he then walked over my numb body and. picked up both bean bag's and threw it aside two people in hazmat gear grabbed Sarah and took off her clothing I screamed “what are you doing to her!!!” they did not acknowledge me they looked at her body like they where searching for something. Her passed out figure limp as a rag doll they removed her pants then her underwear I screamed “No!! you son of a bitch don't do it ill kill you” they studied a bite mark on her upper thigh they made some type of hand signal and left. the soldiers then they came and started pouring gasoline on the mattress and her body. the one with the kriss super V took his cigarette out of his mouth and then flicked it at her it rolled of of her shapely belly and hit the mattress her body bursted into flames and she spasmed and kicked wildly. Then the man pointed it me and said in a British accent “ knock that fuckin Yankee an put em in da ACP double time, thoes hungry bastards are comin” Chapter 3 world gone mad I awoke on a bed in clean clothes and a hair cut. I stood up and walked into the hallway and noticed that this was a hospital. Suddenly a hand grabbed me. “aey where do you think your going ya damn runner rapist” I starred at him & his arrogant look and heavily customized ACR bushmaster. “get the fuck away from me im leaving what ever the hell this place is” he then sprung up and pushed the barrel of his ACR into my neck. “look if you want to get devoured by those runners be my guest buddy but dont go exposing this place to the infection” I looked at him like he was retarded “infection what infection and why the hell is the army bombing populated areas” he looked at me the same way. “ where were you 2 days ago ? There was a virus it was originally H1N1 but it evolved up to 10 times now its got Chicago by the balls and its spreading across the world as we speak turning everyone into animals devouring and ripping people to shreds and then the virus takes over the dead body and brings it back as a runner also know as a fresh undead body that has the ability to run or sometimes sprint god forbid but after 2-4 weeks without food the tissue breaks down from constant use without fuel and they start to get slow and shuffle around” my mind felt overwhelmed I wondered how my parents were doing in Dallas. “so what am I supped to do here but be a waste of space” he grinned. “well you obviously know how to use a weapon and our records say you have been in the military. you cant take care of yourself out there so we will make you part of out kill squad. “kill squad ?” “ohh shit you mean you have never killed or seen any infected yet ? that means your fresh you can be put to good use in our kill team” he told me his name was henry the specialist of his team kill team Charlie-mike. He directed me to the staff sergeant who looked at me and said “well well well we got some fresh meat hope you ready for 3 months of hard core trainin cuz this wont be easy now get yo ass in the garage and clean every APC tire the armory I think the kill teams ran over a little too much runners” 3 Months later........ the training was more rigorous than the basic military stuff a the armory where there was at least a 100 others conversing and grabbing into boxes of gear. Henry took me to the gunny of the armory where he helped me choose my gear. I picked up dragon skin Kevlar with implanted ceramic & alloy inserts. I took some gloves which I cut the fingers of. My boots where the basic digital camo color probably a left over from the war in Iraq which ended several years ago when our president simply drew the troops out. And European troops and some Russians finished off the big time terrorists soon after we heard no more from any our genocidal efforts finally payed off. I went to the weapon stand where I had to fill out a ID sheet to make sure they knew I had training with combat rifles. I chose the ACR which was in stock by the thousands as a gift from the weapon companies to the American army. I pulled all the safety clips and then grabbed a eotech scope out of a box and locked it onto the rail system of the weapon. I attached a mag pull the every one of my carbon strength reinforced clips. The gunny looked at me with a grin and we left for briefing. Chapter 4 things get messy we met up in the garage of the hospital every runner hunter of this kill force a total of 300 men and women in the huge elevated parking complex of the hospital, a general arrived in the elevator his chrome glasses shined in the evening light so did the many badges pinned on his suit which fit his old figure rather awkwardly. he had two formally dressed men with him they both had desert eagles on there side holsters but the general had a FN 2000 slung around his back. it was worn and scratched its polymer body was embedded with and insignia that I did not see so well as it was obscured by the scuffs and grime he looked at us and smiled his mouth opened and he flung his cigar off the ledge of the building he then begun and explained in a dominant voice. “there are 40 spec op Humvee's set up in formation ready to patrol the streets of Chicago you all will be in sector 6 the most dangerous sector of Chicago but no need to worry we have full fledged firepower of 4 APC's which will Carrie your kill team to your objectives take as much time as needed the runners arent going any where. you will clear the sears tower area a hot spot for runners. look all you men and woman, its time to revolt and fight back. its time to say we will not be scared, we will not be intimidated, we will win back our freedom!!” the whole complex light up with cheer. As the two men in formal wear took out PDA's and started directing people to there kill teams the first man shouted “ Chavez,Williams,buck, and,Samson go to APC #1” I quickly advanced thru the crowd to APC 1 I slowed my pace and saw its matte paint job of digital camo and its pop up dillan machine gun turret mounted on top. I pounded on its steel behind and its back door unlatched I stood waiting for the rest of my team I saw all three walking in a line towards the door I saw him ,the man with the kriss super V he smiled at me and said “no fuckin way you tha yankee we picked up in tha alley way you mad cus we killed your little runner girlfriend” I sprung towards him and grabbed his collar and punched him in the stomach then elbowed him in the mouth all the color drained out of his face. “ if you wouldn't of shot me with a fucking bean bag I would of blown your brains out back at the alley” he looked at me and with blood dripping down his mouth “i was just doing my job. welcome to foxtrot 3 by my names john samson you can just call me hunter” I let him go and he limped into the APC then another walked towards me he wore a Grey baklava and tight fitting clothing and a vest that barely covered his chest which awkwardly bulged out he walked towards me and took off the mask. She looked at m surprised face and said “what ? a woman cant be in the military” “well I..I...I just did not expect to have such a high rank personnel on our team” she looked at me and frowend “were both specialists grade one my names Kelly williams” “a heavily armored male in a hijab walked towards me playfully he came up to me and pulled off his hijab he was a African American . “hey specialist now look Im basically here to keep the moral you catch me ? I was in the navy im Ricky buckman Just call me squid now what do you want to go by kid?” I smiled “echo” “nice choice” Albert “echo” chavez I thought in my head I figured that sounds good. We all jumped in the APC while a kill team of rangers in a heavy Humvee with a mounted sentry gun rolled behind us as the whole convoy of kill force 6 prepared for battle. I thought about all my training aim for the head,short controlled bursts a shot anywhere else just stunned them. They move fast so they have to be neutralized if you get bitten or infected kill yourself with the poison capsule that was given or a team mate would do it. I grabbed a Kukri blade off the weapon rack that was provided in the APC I looked at its razor sharp edge its brushed steel surface reflected no light I sheathed it and strapped it to my leg. I caught the eye of Kelly who was fiddling around with the UAV control panel she looked at me and smiled. The APC's lights blinked red prompting us that we are in a hot zone. The APC vibrated as the co pilot took out a pack of runners with the Dillon remote controlled mini gun. We all loaded our weapons and packed up some ammo. Hunter and squid looked at each other and they bumped fists. I put a clip in my ACR and cocked it I turned on the eotech scope and strapped on my helmet and then slid on a black baklava. The APC driver prompted a alarm which was the signal that the door was opening, the big metal door slowly lowered its platform to the ground and we all got out Kelly was the last one out she grabbed that control panel and slid it into her bag she ran out and flipped the close button on the APC. We met up with the four other teams in our sector who already exited there Humvee's. A black Humvee that I never knew was in the convoy rode up and a military adviser jumped out and barked orders like some scared little dog and then jumped back in glad that he wasn't us. He positioned eight snipers on the roof who where each divided into teams of four they zip lined up the roofs and soon each team where picked up by two little bird helicopters the rest of us where on the ground either Humvee calvary hit teams or long range grenade support foxtrot was positioned on the magnificent mile at least it was magnificent. We cautiously walked down the street with another team of 6 watching our back and little birds with snipers covering us and telling us where the nearest pack is. It was empty until we got a report a pack of twenty runners where heading straight for us about 3 blocks away we had about a minute to prepare, snipers took out some and only six broke there steady aim and where 5 feet away, I drew my weapon and just before I could fire a Humvee rammed half the pack of runners over my team shot at there heads to finish them off . I stunted back and fell startled by a runner with broken legs dragging its smelly corpse towards me, my team did not even notice as they where pre occupied with finishing off the pack it grabbed my boot and pulled itself onto my chest I pushed it back and hunter tackled it and shot it once it grazed its ear he then rad up to it and curb stomped its head in over and over, like an egg it crunched under his boot he then walked towards me and picked me up and then our comm's screeched with a danger code: sector red REPEAT SECTOR RED!! this is not a drill!! squid looked at Kelly “OH shit radio the APC radio the APC!!” Kelly hastily radioed the APC and it arrived around the corner ASAP she got in and took the panel out of her backpack all the rangers got back in there Humvee's and formed up a line of vehicle's and the APC was in front we all jumped in and squid popped open 3 of the four combat hatches. We took stance and poked our body's out of the hatches while Kelly was typing away at the panel. “Kelly get us that predator drone NOW!!” “on it Echo..about.....NOW!! get ready for some boom boom boys” she said over the comm a predator drone deployed from a building somewhere and roared across the city's night sky. The little birds shot flares into out immediate area and the military advisor said nervously over the comm “formation green zone ASAP make space for one more hummer!!” his hummer screeched into our circle formation at the middle of the block intersection. We all could hear the uproar and the screaming rage of the Runners it was 9:00 PM and my stomach dropped as runners came at us from every angle swarming in between all the vehicles as we took out as much as we can the advisor yelled. “Break formation head for lane 3 of sector 5 Kelly yelled “but thats a dead end we have no where to go !!” “exactly now MOVE !!” we hastily rammed out way thru the crowd of runners it was easily about 200 to 300 runners we reached the street which was a dead end it was blocked by a collapsed building from all the beach bombing runs. We waited for 5 minutes until we saw it our doom three times as much runners appeared and headed for the convoy. The driver looked bewildered “Get ready im breaking position” he advanced the APC towards the crowd its massive tires gripping the rubble and concrete so agile and quick. He opened fire the Dillon mini gun until there was not one round left. the APC swiveled madly like a dog chasing its tail, all the blood and body matter stuck to the tire made it impossible to control. The whole interior rocked forward on impact with the flipped car. suddenly a screech and the APC flipped over on its side. the runners ignored the APC and went for the group of Humvee's ripping the rangers out that had not locked there Humvee door and devouring them. We herd the screams despite layer after layer of Kevlar and Armour of the APC. My radio started to squawk. “ Pindad Panser down repeat,flipped on its side calling in little bird for support !! bring in UH-60 shadow for medivac ASAP!” I groaned in pain the impact was hard,i could taste blood in my mouth my world was spinning. my team mates did not move they where all laying face down. I soon passed out Chapter 5 delta crimson “Delta crimson GO GO GO !!” I awoke in a sweat, I felt normal again I wiped my blood crusted face off. I leaned up and saw them. “Squid Kelly Hunter Your all alive !” hunter smiled “the crowds not givin up. Hurry mate we got to get outta this APC or crimson is just gonna have to save us” Crimson was an elite rescue squad of some of the best rescue force members in the military marines,rangers,green berets, you name em they can save you. Suddenly we heard the roar of helicopters. Then the door of the APC light up and blew of its hinges a soldier in a crimson baklava shined a light me and my team he latched two metal hooks onto our APC and then the helicopter lifted us into the air, this vehicle the best attack helicopter crafted by the engineer crew over at Hudson base they called it the Shadow because thats all it was, a quick killer in the night. A man made machine manufactured to kill and thats what it was best at. I broke for the chopper and jumped in then squid then Kelly it started to take off right before it left ground hunter grabbed the bay door and climbed in. “forgetting something ?” He threw me my ACR bushmaster which started to look like the generals FN 2000 it was scuffed and marked in every crack and crease. A crimson medivac specialist handed us some refreshments and snacks he said he picked it up at his last raid. He gave me some meds, adrenalin shots use them as a last resort of energy he said. I looked at squid who was holding his dog tag “ man echo you see how that APC flipped on us I almost crapped my pant's” I laughed at the joke even if its not funny my team needs the moral. I looked it the pilot he caught my stare. “where going to the main objective” I sighed and looked away hunter looked at me and made some type of hand signal. “hey Kelly you think we could of died back there” “easily hunter luckily the runners did not find our APC interesting” I looked over at Kelly who was looking at the cracked screen of the control panel. “hey Kelly what all did you use that panel for” “i saved the whole platoon with this thing while you where taking a nap, now its gone and base is a long fly away. The screen broke when the APC flipped. And the predator drone crashed without me controlling it” “damn, nothing good ever lasts long does it” “well echo thats not true your still alive aren't you ?” I we both smiled and when the happiness broke it was back to work. chapter 6 Raid The shadow landed on the roof of a building about 3 blocks away from objective R.R.T.R (runner ruled territory raid) our forces had to kill all runners and take back the sears tower. Kelly was stationed on the roof with hundreds of other snipers .with her barret M82 which ripped into 2 to 3 runners at a time with its large caliber amour piercing rounds. Military advisors sent Ground troops they marched the streets for the main attack on the R.R.T (runner ruled territory). Soldiers of all pact creed and faction marched side by side. the ISF (Iraqi Security Forces) the IRA (Irish Republican Army) even the CIA and DEA forces were marching along with whole police precincts including the bulk of the U.S military. This battle was inevitable and we are going to win.

Topic by albylovesscience    |  last reply

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

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

Question by -max-    |  last reply