ok - i decided to take a break from the robot building to go back to absolute beginner's electronics so i could create a better bot and learn more in the process.
my idea was to create a display output for my "akira" so that as the picaxe pbasic program ran i would know where it was and what mistakes it might be making (it kept running into walls)
so... i got a picaxe 08M2 to talk to a shift register (8 bit, 74HC595 SIPO) and then to a seven segment LED first for practice and then to an LCD for the final version.
and thus my problems began...
1) the 08M2 and the shift register both run at 5v but the seven segment LED runs at 2.5v so obviously i need to put a resistor inbetween them - how on earth do i decide on the strengh of the resistor?
i used ohms law ... (source volts - LED volts) / (current / 1000)
the 1000 is to change milliamps to amps
i got ... (5-2.5) / (30 / 1000) = 340 ohms
i put the closest resistor i could find (440 if i remember rightly) and bugger all happened
i tried kilo ohms - still nothing , hundreds of kilo ohms - nothing (it took one mega ohm resistor to do the job)
so my question - am i missing something really obvious in the maths or are there multiple other things i need to take into account eg the fact i was using a voltage regulator to provide the 5 volts
2) it turned out maplin had sold me a common anode seven segment LED - is it impossible to contol one of these using my setup or can i tweak the programming or physical setup in some way to allow me (i notice most arduino controlled 8x8 LED matrixes are common anode)
frankly i probably have a whole bunch of other questions but this is getting a bit long - so i'll start here.
and before anyone mentions google - my problem is not my lack of research - its the fact i've never had a one to one chat in this subject and thus dont have a clue about the "little things" that most take for granted - hence im looking for advice and not links to information.
thanks
dominic