Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Electronics : beginning picaxe for old dogs
Page 3 of 5 | |||||
Author | Message | ||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Hi Bob, Sorry to hear you are not well. Hope the picaxe stuff has not stressed you out too much. Get well soon mate, theres work to be done. All the best. Pete. Sometimes it just works |
||||
VK4AYQ Guru Joined: 02/12/2009 Location: AustraliaPosts: 2539 |
Hi Pete Feeling better now will be back on deck tomorrow have to rest for a couple of days then should be OK Al the best Bob Foolin Around |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Old Nokia phones have some good bits to play with using a picaxe. Like the display screens can be driven off a 18X picaxe. The little vibrator motor in them is good to mount to a plate and use with the 08m or bigger for testing out PWM programs as it will vibrate and dance around. The tiny speakers will work as buzzers and for tunes. Old computers yeild some good hook up cables to. The wires that go to the front panel for the leds and power switch or reset etc have great little header plugs on the motherboard end, that fit nicely onto the header pins on the test board. Great for connecting that external circuit with. Often they have 2 pin, 3 pin and 4 pin header plugs on some leads. Yes im the bugger that removes these from early model computers in council rubbish. The ones that are to old to do anything else with. I just rip them out, animal like. Pete. Sometimes it just works |
||||
Joblow Regular Member Joined: 05/01/2010 Location: AustraliaPosts: 54 |
They say you can't teach old dogs new tricks but I'd love to have a go. Count me in if it's not too late. The man who never made a mistake never made anything |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Hi Joblow, It will be good to have your involvement. A lot of this will involve yourself bothering to have a go and helping you move forward as you need. Once you make a start it gets easier, as each bit you learn is another building block to work with. Getting setup with board and chip plus the software to run it is half the battle, the rest is just words and the likes on screen to make up the program. If you get it wrong then change the program on screen and dump it back in the chip. Can you make your own circuit board? There is still a couple here if you need. PM me and i will discuss that off 4M. Pete. Sometimes it just works |
||||
Joblow Regular Member Joined: 05/01/2010 Location: AustraliaPosts: 54 |
I'm an electronic virgin so would like a circuit board if possible, Thanks The man who never made a mistake never made anything |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Hi all, Been away but back now. Has your boards arrived yet? Pete. Sometimes it just works |
||||
oztules Guru Joined: 26/07/2007 Location: AustraliaPosts: 1686 |
I'll find out tomorrow.... check the mail once a fortnight..... don't bother to get to "Town" much... and I use the term "Town" very loosely. ..........oztules Village idiot...or... just another hack out of his depth |
||||
VK4AYQ Guru Joined: 02/12/2009 Location: AustraliaPosts: 2539 |
Hi Pete Mine has arrived thank you very much very impressive. I bit the bullet and ordered some UV led's to have a go along the lines of your article. All the best Bob Foolin Around |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Oz, If its got a pub then its a town. Pete. Sometimes it just works |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Bob, Do you have an old bubble jet printer you can gutter to make a board scanner out of. It would also make a good picaxe project, as that is what is used to drive my board scanner, with the uv leds attached to the printer head carriage. Perhaps we can do an on forum ---- how to build a uv scanner using a picaxe --- if you are interested. I used a Epson C61 printer carriage and they have a dc motor which allowed me to use a 08M chip and motor driver chip to run it. Most printers use stepper motors and they require a 18X chip to run a motor driver to operate them, but no big deal except about double the chip price. I have built a stepper version as well and programming for it is not that hard and a good learnig curve. I should ask what leds did you buy? Clusters or loose. Pete. Sometimes it just works |
||||
VK4AYQ Guru Joined: 02/12/2009 Location: AustraliaPosts: 2539 |
Hi pete I think I threw all the non working printers out except for an old cannon 330 a3 printer I think it still in the shed. I got a hundred diodes 3mm I think they havent turned up yet as only ordered last week. I like the idea of doing it on the forum as a project but would suggest we base it on a more common printer such as one of those multi function things that dont last out 3 sets of ink should be plenty of those around I threw out several last clean out. All the best Bob Foolin Around |
||||
Downwind Guru Joined: 09/09/2009 Location: AustraliaPosts: 2333 |
Hi Bob, Pitty you did not ask about the leds first as the clusters work out cheaper and are already mounted on a pcb wired for 12 volt operation. As for the printer any old bubblejet will do as you just need the rail system that the printer head travels on. That way it has the rail and belt with motor all in one piece. Pete. Sometimes it just works |
||||
VK4AYQ Guru Joined: 02/12/2009 Location: AustraliaPosts: 2539 |
Hi Pete Fools rush in where angles fear to tread. It seemed like a good idea at the time. Bob Foolin Around |
||||
oztules Guru Joined: 26/07/2007 Location: AustraliaPosts: 1686 |
Thanks Pete. It has arrived.... and it plays jingle bells too! Great looking unit... now to get linux to find the usb port... ...............oztules Village idiot...or... just another hack out of his depth |
||||
vasi Guru Joined: 23/03/2007 Location: RomaniaPosts: 1697 |
Hi oztules, Any progress with linux usb? If is recognized as /dev/ttyACM0 and you use axepad as user, then you must chmod the device as root: [code]sudo chmod 777 /dev/ttyACM0[/code] and then you can use it as simple user. If not, then use lsusb command and note down your VID/PID numbers of your device and do the following commands as root: [code] sudo mknod /dev/ttyUSB0 c 188 0 sudo mknod /dev/ttyUSB1 c 188 1 sudo /sbin/modprobe usbserial vendor=0xxxxx product=0xxxxx sudo chmod 777 /dev/ttyUSB0 [/code] where vendor is VID number (e.g. 0xAB03) and product is PID number (e.g. 0x000A) Now you can select /dev/ttyUSB0 as your serial port... (sometimes will be USB1...) You must use all commands again every time you reboot your linux, or only last command every time you disconnect your device... Vasi -------------- Corrected device names, sorry... Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
oztules Guru Joined: 26/07/2007 Location: AustraliaPosts: 1686 |
Thanks Vasi, I will get to this problem as soon as I can, but seem to be flat out lately helping other people out. When that slows up, I can get back to my stuff again. Barely time to read the forum at the moment, much less answer sensibly I will automate it once I get it running. Using a different Linux to when I used other USB G3 devices in mandriva and Suse... wrote a quick tutorial here so I guess it will be a a game of finding the right files to butcher. Thanks for the info ............oztules Village idiot...or... just another hack out of his depth |
||||
vasi Guru Joined: 23/03/2007 Location: RomaniaPosts: 1697 |
Ooops! From your words (PHARscape require registering and I will let that for later) I know I tried to sell cucumbers to the gardener. Those modems require /dev/ttyUSBx I think... I used a CDMA Qualcom modem too and I had a tutorial (in romanian) on Googlepages before they switched to Google Sites... Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
oztules Guru Joined: 26/07/2007 Location: AustraliaPosts: 1686 |
Here it is Vasi Well thanks to the very good information on this site, I have my GX0202 option card working fine on Suse 10.2 However for a linux newbie like me it took a long time to sort out what I needed from the myriad of information presented here. After trying unsuccessfully to modify dial scripts and lots of other things that I should not have done, I have worked out this set of instructions for those of us who don't want to learn too much about linux "under the hood", but just want their linux to run their NextG card exactly as it does in Windows XP... and to use Kppp without any passwords or comand line instructions or su passwords. So here is what I found to work for me... I installed a new Suse 10.2 with all the default settings only.... just let it do what it does out of the box. I leave the card in the pcmcia slot the whole time.... it never moves out of the slot. OK, If your in Australia, your NextG card (option card with the serial no starting FN and GX0202 inside the case supplied by Telstra. has a vendor code of 0x0af0 and a product code of 0x6701... thats all the info you need to know. (you can find this from yast if you try hard enough) Step 1 open a terminal and type in su (this gets to root mode) press enter Answer the password....... you are now root .. be careful type kate..... press enter (this gets an editor started with root privelages) open the file /etc/modprobe.conf.local Add this line to the bottom of the file options usbserial vendor=0x0af0 product=0x670 it should now look like this or similar: # # please add local extensions to this file # options usbserial vendor=0x0af0 product=0x6701 ok save the file (ctrl s or use the file menu) now open another file called /etc/sysconfig/kernel In this file you will see a few lines amongst the rest that look like this: # MODULES_LOADED_ON_BOOT="" change it to # MODULES_LOADED_ON_BOOT="usbserial" save the file as before. turn machine off the usual way and start it again (not reboot, but a stop/off and start( or a cold boot) The first file change we did allows an option for the module usbserial to be loaded if the vendor prod matching our card is detected. The second file change did a postboot run of modprobe usbserial. Without this second change, you would have to log on as root each time you start and issue a modprobe usbserial commend each time we start....not for me. If this has been done, then if you want you may open a terminal and type dmesg in all the stuff it reports, you should see some lines like these (the USB port may well be different mine is usb4 or 5 depending if the usb printer is plugged in or not usb 4-1: new full speed USB device using ohci_hcd and address 2 usb 4-1: new device found, idVendor=0af0, idProduct=6701 usb 4-1: new device strings: Mfr=1, Product=2, SerialNumber=4 usb 4-1: Product: Globetrotter HSDPA Modem usb 4-1: Manufacturer: Option N.V. usb 4-1: SerialNumber: Serial Number usb 4-1: configuration #1 chosen from 1 choice usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial support registered for generic usbserial_generic 4-1:1.0: generic converter detected usb 4-1: generic converter now attached to ttyUSB0 usbserial_generic 4-1:1.1: generic converter detected usb 4-1: generic converter now attached to ttyUSB1 usbserial_generic 4-1:1.2: generic converter detected usb 4-1: generic converter now attached to ttyUSB2 usbcore: registered new driver usbserial_generic drivers/usb/serial/usb-serial.c: USB Serial Driver core ok the card now works.... next how to use it on linux If you want to use kppp you will need to use yast software control to load a copy and install it from your Distro disk You will also need to change the permissions in the advanced permissions to set GUI box ticked, and your user name appended to root for this app.... or just run it from a su terminal as we did with the kate editor. (log into terminal with suand password then use kppp at the command prompt Just to get going, we'll use wvdial as it installs by default and is pretty good to get you going. SO...... open a terminal. type su and answer the password. type in kate to get the editor running open the file /etc/wvdial.conf Change the modem from /dev/modem to /dev/ttyUSB0 (use capitols for the USB part) change baud to 360000 or higher phone number is *99**# for telstra use your telstra username (it's my email address for me) password is your telstra password you would use to log onto bigpond Your file will then look like this Modem = /dev/ttyUSB0 Baud = 360000 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = Area Code = Phone = *99**# Username =username@bigpond.com (type in your telstra email address I suspect) Password =(type your telstra password here like when you log onto bigpond acc) Ask Password = 0 Dial Command = ATDT Stupid Mode = 1 Compuserve = 0 Force Address = Idle Seconds = 300 DialMessage1 = DialMessage2 = ISDN = 0 Auto DNS = 1 Make sure you type USB0 as USB in capitols and a zero not a capitol 'O" ok save the file type in wvdial and you will connect to nexg g network (you are still in su mode in the terminal i am assumung here) Fire up firefox or similar browser and your away. Your mail client, browsing and anything else I have tried have worked flawlessly and fast. so it works it's simple and i'm happy To get kppp to work, you need to start kppp in root mode from the terminal ( or have the permissions fixed for kppp in admin) point the modem to dev/ttyUSB0. I turn off flowcontrol put in password and account names and it will work. May require a cold boot to help it first time. You may have to use the init 2 code from wvdial as well (ATQ0 V1 E1 S0=0 &C1 &D2) as the second init string. I find that a re-start (stop completly and then restart the machine) seemed to help after this ...don't know why.... When you get some confidence with kppp you can use a deskto icon to startit but be warned, if you start kppp without the correct privelages, and try to connect it will freeze the card and you will need to cold boot to get it going again (it wont initialise the card properly and screw up and freeze in the initilising card part of the dialup) and a cold boot will be necessary. perhaps use wvdial for a bit till you are confident the card works properly. Then when you mess up with kppp you wont feel so helpless. good luck .......oztules Village idiot...or... just another hack out of his depth |
||||
vasi Guru Joined: 23/03/2007 Location: RomaniaPosts: 1697 |
Yes, as I thought... selling cucumbers to the gardener Vasi Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
Page 3 of 5 |
Print this page |