PDA

View Full Version : Programming a Basic Stamp using Python?



Ghosts
12-12-2013, 07:58 PM
Yeah, so for school I kind of volunteered for something for extra marks even though I have no idea what I'm supposed to do, haha.

I have to program a Basic Stamp, which is normally written in PBASIC, using Python. I'm sure this is possible, but I don't have any idea how to do this since I hardly know either language yet, so any help is highly appreciated!

DarkByte
12-13-2013, 04:10 PM
What do u mean a stamp?

Josh
12-14-2013, 04:03 PM
What do u mean a stamp?

[Only registered and activated users can see links]

^Google

Ghosts
12-14-2013, 04:33 PM
Yeah, that. I think it's just a thing schools use to help teach basic programming, not sure. But basically I need to control it, which is programmed in PBASIC using Python somehow.

DarkByte
12-14-2013, 06:27 PM
Hmmm looks like my aduino that I used to make plant bot (a automated controller for growing plants , more specifically weed :) ).

So Stick a led into pin 3 out then you have basically 2 settings , high and low to make the led flash in pin 3 we would do something like:

start:
pause 1000
high 3
pause 1000
low 3
goto start

This would make the led flash....


Then lets say u wanted to control via a push button:

Connect ur button to in0 pin and use something like this:



start:
If IN0 = 1 THEN
high 3
else
low 3
end if
goto start


im not sure the exact syntax here but u get the idea ive only used aduino before and rasberrypy

Ghosts
12-14-2013, 08:20 PM
DarkByte

Yeah, that's what I'm talking about!

Do you know if there's any way I could do that using Python? So the stamp is programmed in PBASIC, but somehow I have to get a light to turn on using Python. Would I have to have Python code convert it into PBASIC so that the stamp could understand it?

Josh
12-15-2013, 12:41 AM
Hmmm looks like my aduino that I used to make plant bot (a automated controller for growing plants , more specifically weed :) ).


^Fucking awesome.

Lol.

ritzwin
12-15-2013, 01:10 AM
^Fucking awesome.

Lol.

DarkByte , Please go on. I might be getting a rasberrypi for xmas, looking for ideas!

DarkByte
12-15-2013, 06:18 AM
Raberry pi u can make a wireless solar powered data logger. Stick it in range of say a banks WiFi network for 2 days logging packets to a SD card. Stick the SD card in a pc and crack the wireless key with a pc and aircrack ng.

Now u have ur banks WiFi network Key and can sit i n a car logging data...


A more legit money maker is to turn one into quadrocopter and take arial images of events or shops then sell the photos.

I'll upload some sshots , samples later of my aduino :)