scarecrovv wrote:Any computer has some inputs and outputs. Your computer has a keyboard, and a screen, among other things. In a vending machine, there's a little keypad, a little LED display, and some motors to dispense food and drink. In your program, I imagine that when you want to dispense a coke, you call a function to print something on the screen, like "you get a coke!". In a real vending machine, your program would call a function that runs the motors in the appropriate order. It's just different peripherals on the computer.
The construction of those peripherals is the job of electrical engineers and mechanical engineers.
Ventanator wrote:How is the programming done for these little computers? I assume it's the same. And if I wanted to say...build a vending machine (I don't want a vending machine, I just want an example) how would I do it?
Users browsing this forum: No registered users and 1 guest