New Posts  All Forums:

Posts by wakibaki

This looks like fun. I think I'll get one.   w
Yes and yes.   I had to return the first Pi I got because of it's unreliability, it kept throwing error messages during boot, different error messages each time, sometimes pages of them followed by a failure to produce a command prompt. To try to resolve the problems I was having I bought a second USB PSU, and tried a second powered USB hub. When neither of these fixed the problem in any combination I returned the PI to RS. The replacement didn't have those...
  NOOOOOOOOOOOOOOOOOOOOOO! Rick Wakeman. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH!   I have to say, on the subject of old and new gear, although bigshot paints things very black and white, he's pretty much right. Mechanical build quality tended to be less 'value engineered' in days gone by, and there are exceptions to every rule, but audio equipment is pretty good now. Look at the Sansa Clip. Most heads would have sold their souls for SQ like that in the '70s, to say...
OK, here are the 2 subroutines, clockwize and anticlockwize, they're practically identical, so there's no reason not to just describe one.   clockwize: rrf rflag,f btfss STATUS,C goto clk bsf rflag,7 clk: bcf STATUS,C return aclockwize: rlf rflag,f btfss STATUS,C goto aclk bsf rflag,0 aclk: bcf STATUS,C return   We have the state...
Now let's take a look at the program's main loop.   This is the section between the label, 'mainloop:' and the last 'goto mainloop'.     mainloop: btfsc PORTB,4 goto main_anti call clockwize call do_your_thing call delay goto mainloop main_anti: btfsc PORTB,5 goto mainloop call aclockwize call do_your_thing call delay goto ...
Here's the schematic for the little board I built.     It means I can connect up a 9V battery and have a power (5V) output for the stepper board. Then there are 4 pins brought out to a header to drive the stepper motor coils, and a programming header so that I can reprogram the chip in situ.   There are 2 switches to ground with pull-ups to Vcc connected to PORTB, bits 4 and 5. The pullups keep the pins high, except when the switches are closed, when...
Here's the program reduced to a template for PIC 16F690:     list p=16F690 #include __CONFIG _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT cblock h'20' endc ORG 0x000 mainloop: goto mainloop END   These few lines are what we call the programming overhead. The bits that need to be in the program, but that aren't really part of the program...
Lest anybody get impatient to see some code, here's the first, basic program in its entirety:-     list p=16F690 #include __CONFIG _FCMEN_OFF & _IESO_OFF & _BOR_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT cblock h'20' rflag sflag dflag endc ORG 0x000 bcf STATUS,RP1 bcf STATUS,RP0 ; 00, BANK 0 movlw b'11111111' movwf PORTA ; PORTA...
Back again.   I said I would show a couple of applications using 7-segment displays, and I will, but in the meantime I needed to develop something for myself, so I'm going to show it first.   A friend of mine recently suggested using a stepper motor to drive a pot or stepped attenuator for a remote, powered volume control.   As it happened I had just learned a new technique for PCB layout.   Some components are circular, such as tubes. Previously, when...
Android stick. Hadn't seen those. Cool.   I already got my wife's Nexus 7 playing audio off the NAS, so it should be a snap with an android stick.   w
New Posts  All Forums: