No Chaos No Order

  • Sample Page

Monthly Archives: January 2010

Microcontrollers: finis

Posted on January 12, 2010 by fairyguts Posted in Microcontrollers .

Ok, so where was I?  Reviewing my microcontroller class… I talked about RGB and PWM…

Next we explored output – how to see information from the teensy about what it is doing.  You can choose “serial monitor” which will output information to a screen on your pc if the teensy is hooked to it.  Further in the code, you can specify what type of output the teensy will show.  With the coding “serial.print” and a message, you’ll see the message you identified being printed on the serial monitor.  Changing the program while using other microcontrollers can make this information much more interesting and useful.  For example, attaching a pushbutton, potentiometer, or thermistor will provide new information to the teensy which can be viewed or manipulated on the serial monitor.  So, you can program the chip to read when a button is pushed or not pushed and have it use the serial.print to output certain text in response to each condition.  With an analog microcontroller, you can have the serial.print output analog information to the serial monitor using the analogread function.  Then you can even apply equations to the data to show a new value – you’d have to do this if you want to see temperature as measured in Ferinheight from the thermistor.

Pushbutton:  In the set up we learned in the class, the pushbutton acted as an “active low”, which Paul described as having a “signal [that is ] low when the condition is happening” meaning when you or the environment acts upon the teensy system, the amount of voltage cycling through the system is low or (in my mind) broken.  So, in this case, when you push the button you are breaking the electricity cycle.

I am still a bit confused about the “pull-up” nature of this button in this situation.  Looking at the tutorial, there’s a resistor that we put across the breadboard between the button on the plus side and over to the negative side.  So, I’m thinking that, when you push the button and interrupt the flow of electricity, when you let go of the button sometimes the electricity doesn’t start cycling again.  The resistor is holding a little bit of electricity which gets pulled into the button when you let go, maintaining the cycle.  Kind of like, if you’re siphoning water out of a fish tank and you pull the high end of the tube out of the water all the water in the tube falls down the low end and you have to start the siphoning all over again.  The resistor is sort of like your thumb over the end?  Maybe?  Not really, because it isn’t working to stop the flow or maintain the pressure in the tube, but kind of like that. That’s not an ideal analogy for that, but it works for my brain!

Potentiometer: This is a resistor that lets you change how much voltage gets let through.  It’s considered analog because you can have increments rather than just “on/off”.  In our tutorial, we used it to change the bulb color from green to red and back. Using the programming, the board sensed how much voltage was being let through from the potentiometer and then it changed the amount of color in response.

Temperature Sensor (thermistor): this is really simple to install. It’s a resistor that changes how much voltage can pass through it depending on the ambient temperature.  Therefore, the teensy can measure the voltage as an analog input and then use the analogread to show how much voltage is passing through.  This number doesn’t make much sense to us, though, because we use the farenheight or Celsius scales most commonly, so add some equations to convert into the familiar scales.  Wa-la! Super easy!!

MAME today showed LIFE!!

Posted on January 8, 2010 by fairyguts Posted in Uncategorized .

So, Phil came over and finished installing the MAME drivers on the computer we’re using.  Success!  The image shows up on the tv, the driver works and games are visible and partly playable!  He spent some time mapping commands to the controls, although there are several buttons and joystick switches that aren’t working quite right.  Also, I didn’t realize that you need separate buttons for 1 or 2 player selection AND add coins for each player.  My job for this task is to install two more buttons (I’m thinking of adding switches behind the “coin” buttons with some LEDs to light them up).  Another task is to cut back some of the cabinet so the control board will sit nicely.  The joysticks stick out too far and don’t allow the board to lay flat.

Phil’s coming back maybe this weekend or next week with his voltimiter to try to find the problem with the malfunctioning buttons and joystick switches.  He’s also going to figure out what voltage is feeding the light bulbs so we can put the right ones up in the marquee.  I’d like to close that up and have the lights be functional soon.

I’d gotten some small computer speakers from Goodwill last night, but they did not work so I’ve got to take them back and get some others. That’s it for the MAME right now! Wahoo!

Tags: arcade, collaboration, MAME .

Recent Posts

  • Tasker introduction
  • Gallery wall: initials
  • More random old house stuff
  • Organizing the entryway
  • Leather Wallet

Categories

  • blogging
  • health
  • heart
  • home
  • Random
  • relationship
  • Sewing
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

  • April 2017
  • June 2015
  • May 2015
  • March 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • June 2014
  • May 2014
  • December 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • February 2012
  • May 2011
  • April 2011
  • March 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • April 2009

Recent Comments

  • mdeira on Organizing the entryway
  • Shannon @ Of The Hearth on Quick review of O.N. chapters
  • Laundry Room: cleaning supplies | No Chaos No Order on Experiment: all purpose cleaner
  • Quick review of O.N. chapters | No Chaos No Order on A Return to Methodical Organizing
  • A Return to Methodical Organizing | No Chaos No Order on “Organize Now” progress

Pages

  • Sample Page

Archives

  • April 2017
  • June 2015
  • May 2015
  • March 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • June 2014
  • May 2014
  • December 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • February 2012
  • May 2011
  • April 2011
  • March 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • April 2009

Categories

  • blogging (3)
  • health (32)
  • heart (105)
  • home (77)
  • Random (34)
  • relationship (26)
  • Sewing (20)
  • Uncategorized (14)

WordPress

  • Log in
  • WordPress

CyberChimps WordPress Themes

© No Chaos No Order