Search found 20 matches

by Peter Chaffe
Wed Oct 03, 2012 11:56 pm
Forum: V-USB
Topic: Using V-USB on ATMEGA328P with Arduino
Replies: 3
Views: 3565

Re: Using V-USB on ATMEGA328P with Arduino

the c language of arduino c is not the same as the c language of avr. Your going to need to screw around a lot with the code(not recommended) or Use a real programming environment like avr studio for instance, You will find it compiles no trouble...

Peter
by Peter Chaffe
Sat Jan 21, 2012 1:19 pm
Forum: V-USB
Topic: Noob question about Windows HID
Replies: 5
Views: 2968

Re: Noob question about Windows HID

If absolutely nothing happens when its plugged in then D- is not being pulled high, good, looks like you've found the problem...
by Peter Chaffe
Fri Jan 20, 2012 8:26 pm
Forum: V-USB
Topic: Noob question about Windows HID
Replies: 5
Views: 2968

Re: Noob question about Windows HID

First priority is to get the usb connection functional. if necessary without the rest of the circuit connected(this is sometimes a sensible approach when using a different mcu than suggested in a working example). choice of clock freq is all part of ensuring the primary goal of having a working usb ...
by Peter Chaffe
Fri Jan 20, 2012 5:26 pm
Forum: V-USB
Topic: Noob question about Windows HID
Replies: 5
Views: 2968

Re: Noob question about Windows HID

Mark you didn't say what the circuit is supposed to be doing!ft g Just by looking at it quickly, there is several things I would change regardless! (1) take usb pin3 to INT0. (2) change crystal to 12 mhz. (3) Your circuit suggests you want to control channels from the host, if so suggest not use hid...
by Peter Chaffe
Mon Jan 16, 2012 10:03 pm
Forum: V-USB
Topic: Anybody using PCINT instead of INT0?
Replies: 5
Views: 3698

Re: Anybody using PCINT instead of INT0?

Self defeating was probably a bad choice of words, and I still can't find the reference I mentioned... What I meant to say was that it wouldn't be a preferred option to use another pin than INT0. as any higher interrupt pins would then need to be used with great care to avoid any possible unexpected...
by Peter Chaffe
Mon Jan 09, 2012 12:51 pm
Forum: V-USB
Topic: Anybody using PCINT instead of INT0?
Replies: 5
Views: 3698

Re: Anybody using PCINT instead of INT0?

I never answered because I couldn't find the reference, but there is a mention somewhere that any interrupt pin can be used successfully but the big drawback is that it severely limits the use of any higher interrupt pins for other purposes. so in effect it would probably be self defeating.
by Peter Chaffe
Tue Jan 03, 2012 9:34 pm
Forum: V-USB
Topic: switch on leds from windows pc with attiny45
Replies: 2
Views: 1584

Re: switch on leds from windows pc with attiny45

The powerSwitch project on this site will give all the info you need! I have recently used an atTiny45 to do just that, ie a one channel external switch/relay. A slight re-hash of the firmware source code is all that is needed for it to work. LibUsb employs a driver wizard which will create the requ...
by Peter Chaffe
Sat Dec 31, 2011 2:49 am
Forum: V-USB
Topic: atmega 8 new product with v-usb project?
Replies: 7
Views: 5089

Re: atmega 8 new product with v-usb project?

You didn't say what voltage your using! You could be running on the edge of acceptance! Using the 5v usb rail is out of spec for usb. Reducing the voltage is bad for high clock speeds, and especially bad for overclocking. I haven't been using v-usb for long but have done quite a bit of experimenting...
by Peter Chaffe
Sat Dec 31, 2011 2:28 am
Forum: V-USB
Topic: host software
Replies: 6
Views: 3687

Re: host software

Thanks for the tip!
After a few hours trying, have got it up and running in Delphi...
just need to clean up the code a bit now!
by Peter Chaffe
Fri Dec 30, 2011 12:24 am
Forum: V-USB
Topic: host software
Replies: 6
Views: 3687

Re: host software

Got a couple versions working now thanks! Got IGOR Plug working but realised it is strictly 32bit only, so unless someone has the capability to update to 64bit then it looks like its obsolete! LibUsb seems to be the system of choice, have it working on xp 32 bit and w7 64 bit. Controlled the powerSw...
by Peter Chaffe
Fri Dec 30, 2011 12:13 am
Forum: V-USB
Topic: problem on atmega8 with USB_CFG_IOPORTNAME set to D
Replies: 3
Views: 2148

Re: problem on atmega8 with USB_CFG_IOPORTNAME set to D

Thought I'd give you all of my results so far PowerSwitch code (default, as downloaded from site): ie only using pre-compiled hex file. used Attiny2313 Flashed with AVRDragon External 12 mc/s crystal Fuses: Ex 0xFF high 0xDF low 0xFF Tested and works fine on: xp pro 32 bit sp3 W7 home 64bit W7 enter...
by Peter Chaffe
Tue Dec 27, 2011 9:28 am
Forum: V-USB
Topic: problem on atmega8 with USB_CFG_IOPORTNAME set to D
Replies: 3
Views: 2148

Re: problem on atmega8 with USB_CFG_IOPORTNAME set to D

What code are you using?
Upload it and I'll try it on a atmega328 which i believe is pin compatible with the atmega8...
by Peter Chaffe
Thu Dec 15, 2011 12:58 am
Forum: V-USB
Topic: Running Attiny45 on xtal
Replies: 1
Views: 1550

Re: Running Attiny45 on xtal

For anyone interested here is a skimmed down version meant for use with a Crystal: #include <avr/io.h> #include <avr/wdt.h> #include <avr/eeprom.h> #include <avr/interrupt.h> #include <avr/pgmspace.h> #include <util/delay.h> #include <stdlib.h> #include "usbdrv.h" #include "oddebug.h&...
by Peter Chaffe
Tue Dec 13, 2011 10:59 pm
Forum: V-USB
Topic: Running Attiny45 on xtal
Replies: 1
Views: 1550

Running Attiny45 on xtal

Hi, Trying to understand the code better. I'm using the tiny45 for the caps locker circuit (very similar to the easy logger). Got it running ok using the internal osc at 16500000 so now want to try using an xtal instead. Changed the fuses low 0xff & high 0xdf, and used a 12000000 crystal, the ci...