Search:
Intro Physical Computing Fall 2005

registered authors login here

For more on PMWiki, see pmwiki.org

Class
 

Howdy. Welcome to the class. If you've got any immediate questions for me, please email me instead of posting here. If you've got questions for the whole class, this is a fine place for it.
tigoe

Keeping with my new tradition: as we discussed musical notes and frequency in class, I've added a link to my site for those interested in seeing which frequencies represent which notes in western music. Follow the link below. gjh235

As Fast Fourier Transform was brought up in class today, I thought I'd share a PDF that is rather straight-forward. http://homepages.nyu.edu/~gjh235/PhysicalComputing.html
I've done a bit of research in this area so contact me with any questions.
gjh235

Hi Justin I recieved the same error message 0000 as well last night. Can't be sure of what the problem is, however when I tried code that I know for sure works in the same document the error persisted. I copied the code that I needed, opened up a new document and it downloaded fine. So my hunch was there was something not immediately evident about the particular file. That's probably not much help in answering your question, but at least you know you're not alone.
Alice atp237

This pic18F452 got me excited all over. I cannot wait to get one of those. While we are on the subject I have found the datasheet of it, if you are interested. I got couple of questions though. So since Tom told us that we are going to use 4Mhz crystal clock to bang the chip, does this mean we have potentially bang it 4million times per seconds right? I have also found out on the datasheet that it has 32kb memory that is equal to 16387 cycles per second. So can someone enlighten me about those subjects, what are the difference of those, I think I am mixing up subjects here. If I go with an example, I want to process some information into the chip and then take out that information, does this mean It can do it 16387 times per second? So what about this 4mhz. What is it good for? Enlighten this poor guy.
ilteris

good questions ilteris. I don't have the answers, but I'm glad I looked here and found your link to the 18f452 datasheets. I had trouble finding it on the microchip website since it seems like they're trying to phase this chip out in favor of 18f4520 18f452 page. The link to the datasheets on the top left doesn't work, but now i see the 18fxx2 datasheet link in the middle right of the same page.
ot6

Ilteris, 4 MHz and 32 kb are measurements of different parts of the PIC. The 4 MHz crystal we're using is part of the clock for the PIC. The PIC needs a steady signal (the clock) so that it can go through each step of its code at a constant pace and so that it can have something to measure external signals against. On the PICS almost all of the instructions take four clock cycles to complete so if the PIC is using a 4 MHz (four million cycles-per-second) crystal it is executing one million instructions per second. Each of the high-level commands in PICBASIC are made up of a bunch of the PIC's native low-level commands though so your PICBASIC programs won't appear to run that fast. The 32 kb (32 thousand bytes) is the amount of memory available on the PIC for storing your program. This is the part of the PIC you write your program to. There are some other types of memory on the PIC too - these are used for storing data used by your program.
Zach

I created a couple of low tech MacGyver-like switches. Here is one made from a ChapStick dispenser. The only soldering was for a couple of headers. As you twist the bottom of the dispenser, some paperclips are raised until they make contact with the leads.
Adam

If you are interested in seeing the code I wrote for the Whac-A-Mole LED game, you can find it here: http://www.editmation.com/pcomp/week3.html Also, I've posted a template of our friend, the 18F452 PIC chip. Just print it, cut it out, and glue it to your chip. Let me know if you think the text is too small. Anyway, grab it here: [http://www.editmation.com/pcomp/pic-18F452.pdf] Chris K

Are variable names in PicBasic Pro case-sensitive?
I assumed they were but I just wanted to confirm that the example in the Physical Computing textbook on page 311 (where a variable "note" is declared) and then on page 312 "Note" is used.
Can "note" and "Note" be used to describe the same variable or is it simply a typo?
Adam

Variable names are not case-sensitive in PBPro, but the editor does correct them to whatever you first typed when you declare the variable. That's a typo you're looking at, Note and note are the same in that program.
tigoe


For the morning class especially, but really for both: I worked out the problems with the stepper controlled by a potentiometer. It ended up being a combination fo Dan's code and mine, with some re-thinking the action of the motor. It's on my code blog here.
tigoe

Edit Page - Page History - Printable View - Recent Changes - Search