Like Tree17Likes
  • 1 Post By quzah
  • 1 Post By itsme86
  • 1 Post By AndrewHunter
  • 4 Post By Salem
  • 2 Post By Salem
  • 3 Post By itsme86
  • 2 Post By CommonTater
  • 1 Post By Mario F.
  • 1 Post By CommonTater
  • 1 Post By AndrewHunter

bake cookies using only the EM from your monitor

This is a discussion on bake cookies using only the EM from your monitor within the General Discussions forums, part of the Community Boards category; I'm doing a project on solar panel water pump.I need to use C programming to automatically activate the water pump ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    3

    bake cookies using only the EM from your monitor

    I'm doing a project on solar panel water pump.I need to use C programming to automatically activate the water pump battery from 6pm to 6am for a 4 digit 7-Segment LED.
    Here are the codes from my previous project codes for Count Down Timer for AT89C5131 board. So how do I edit from it?
    Attached Files Attached Files
    • File Type: c m.c (1.8 KB, 70 views)

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Personally, I'd use some kind of text editor.

    See also: Homework policy, How to ask smart questions.


    Quzah.
    AndrewHunter likes this.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    Did you hope for new answers to the same question ?

    btw..If you wrote the code in the file you attached, this shouldn't be much different !
    Last edited by manasij7479; 07-21-2011 at 10:41 PM.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    You know what's really helpful? Using the title "C Programming" on the C Programming board. I mean, that's really cluing people into what the thread is all about. If it weren't for your descriptive and most helpful title I might have thought this thread was about breeding camels in a temperate climate or how to bake cookies using only the EM from your monitor. My hat is off to you, good sir.
    AndrewHunter likes this.
    If you understand what you're doing, you're not learning anything.

  5. #5
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by itsme86 View Post
    .... If it weren't for your descriptive and most helpful title I might have thought this thread was about breeding camels in a temperate climate or how to bake cookies using only the EM from your monitor. My hat is off to you, good sir.
    Good question! Do you know how to bake cookies using the EM from a monitor? It sounds like something that you could find on the apple support site.
    manasij7479 likes this.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,533
    Thread title fixed (kinda)
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,533
    > I need to use C programming to automatically activate the water pump battery from 6pm to 6am for a 4 digit 7-Segment LED.
    In order to know when 6pm is, you need to know what time it is "now", in order to know when 6pm is actually 6pm.

    The MCU you quote doesn't have a real time clock, so does the board you're supplied with have such a clock?

    Mind you, the whole "solar" thing is a give-away.
    Perhaps all you need to do is put one of these across a couple of I/O pins in order to determine that it is in fact just "dark" outside.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Salem View Post
    Thread title fixed (kinda)
    I could have baked cookies with a light bulb, but I never had an Easy-Bake Oven!


    Quzah.
    Hope is the first step on the road to disappointment.

  9. #9
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,163
    Quote Originally Posted by AndrewHunter View Post
    Good question! Do you know how to bake cookies using the EM from a monitor? It sounds like something that you could find on the apple support site.
    No, and I've been wondering. Which is why I opened this thread in the first place. You can imagine my disappointment when I discovered it was only about something as mundane as activating a water pump.
    If you understand what you're doing, you're not learning anything.

  10. #10
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by itsme86 View Post
    No, and I've been wondering. Which is why I opened this thread in the first place. You can imagine my disappointment when I discovered it was only about something as mundane as activating a water pump.
    Yeah well, someone's gotta put the fire out after you burn those cookies of yours...

  11. #11
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    Quote Originally Posted by Macintosh User's Guide

    In response to those customers who wish to reduce their exposure to
    electromagnetic fields, Apple has lowered the emission levels of our products.
    We are also actively encouraging further scientific research so we can
    continue to promote the health and safety of our customers and employees.
    I was wrong, turns out apple made sure you couldn't bake cookies with your macintosh.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  12. #12
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,460
    Quote Originally Posted by AndrewHunter View Post
    I was wrong, turns out apple made sure you couldn't bake cookies with your macintosh.
    But judging from the canned answers, you can use it as a health care devise.
    I'm going to try and rub myself against an iPad...

    @Salem, the board includes an optional RTC, which our OP friend should be more than aware of, if he indeed wrote that file he says he did:
    Code:
    #include <REG51KJ.h>
    
    #define PB1          P33
    #define PB2          P10
    #define PB3          P12
    #define secSet       PB2
    #define minSet       PB1
    #define startSet     PB3
    AndrewHunter likes this.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #13
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Actually for the original inquiry... I would follow an already suggested route of using a photocell on an analog input. It's smarter than a timer since it can also account for cloud cover, enormous forest fires, volcanic ash, eclipses, massive solar flares and blue moons.

    "Once in a blue moon"... http://www.farmersalmanac.com/astron...s-a-blue-moon/
    Last edited by CommonTater; 07-23-2011 at 05:29 PM. Reason: Found a better link...
    AndrewHunter likes this.

  14. #14
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,533
    Serious replies should go here -> solar pump switch
    I split the "fun" part out
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  15. #15
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,866
    That is assuming 2 things will happen though. I will express this in a language we can all understand *cough*quzah*cough*
    Code:
    if(opReturns && opShowsEffort)
         provideActualHelp();
    quzah likes this.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-08-2011, 06:26 AM
  2. Cookies!
    By Edin in forum Windows Programming
    Replies: 2
    Last Post: 11-03-2004, 05:36 PM
  3. PHP and Cookies
    By Jperensky in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 12-15-2002, 11:10 AM
  4. Cookies
    By TrollKing in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 06-14-2002, 10:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21