Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I would suggesting keeping the clock speed relatively low to begin with a least, maybe 20kHz as you wire capacitance may become an issue. Also pull up reistor should be kept on the low side, maybe ~4.7kohm
I would agree with the suggestion to try ST Discovery boards, especially those include STM32F2 or STM32F4 devices. ST have a configurator tool, STM32CubeMX which makes pin and peripheral and clock configuration a doddle, especially for beginners. Also there is a good lot of example projects online.
Hi,
sounds like an ambitious project for beginners. I would say 8-bit is not going to be enough and assembler is out of the question for a project of this size. Take a look at the Eval Kit
http://www.atmel.com/tools/EVK1104.aspx
It does everything ( and more ) you talk about. Has full...
You could go with these for constant current output:
MBI5026 - http://www.vabolis.lt/stuff/MBI5026.pdf
A6282 - **broken link removed**
or this for direct switching, use two linked together.
TPIC6B595 - http://www.ti.com/lit/ds/symlink/tpic6b595.pdf
That's a pretty broad question. I would start with this: AVRUSBKEY
Atmel Products - Atmel AVR 8- and 32-bit Microcontrollers - megaAVR - AT90USBKEY
There is sample code to simulate a keyboard/mouse functions.
Good luck.
Sorry to hear your still having problems. The best I can do at the moment is to point you to a good C bitbang I2C routine here:
http://www.atmel.com/dyn/resources/prod_documents/QTAN0040.pdf
Look under Source Code.
I'm not very familiar with the PIC or Assembly so this code might get you on...
You need to have another look at the I2C protocol. It seems you are not checking for ACK's and not issuing a stop or repeat start condition after you write above.
An I2C Tutorial.
lots of source already in this forum also.
Hi sayonee. Can you scope the I2C lines to see if your getting any NACK where you shouldn't be? Or maybe you could add to your code
if( NACK )
{
lcddata('x');
continue;
}
use:
lcddata('y');
lcddata('z');
for the different locations where NACK is checked. This might narrow done...
Your writing sequence is correct but I think the read sequence should be:
1. Send a start Bit
2. Send address of slave with the R/W bit low
3. send ACK
4. Send Internal register address of the byte you want to read
5. send ACK
6. Send a start Bit again
7. Send address of slave with the R/W bit...
Re: IR Decoder Conundrum
Just to update. I've received some TSOP4838 IR receivers and they too don't show the 1.1kHz square wave. What type of sensor could the original be? Anyone any thoughts on why this sensor is showing the 1.1kHz signal but any of the IR receivers I've tried do not?
Could you possibly swap out the crystal for say a 4Mhz and try programming with that. Put back your crystal then for program execution. I know it's a hassle to change crystal but could point you in the right direction for fault finding.
You can follow this guide for outputting your Gerbers from Altium. It also shows how to setup Clearances ( Isolation ) although this does need to be done before you route or you'll end up re-doing the layout where violation occur.
**broken link removed**
I don't know this programmer but in general use the lowest possible programming speed you can and ensure your supplying 5v during programming to get be best chance of success. Some devices will get away with 3v but just to be sure.
Just found this thread from 5 years ago:
https://www.edaboard.com/threads/58034/#post259987
It was started by me.....I still haven't got around to building one. Hope the link helps, looks like a good one.
Re: (Altium) Inaccurate board outline after use of "Design of selected objects"
Ah Ok. I've created a board with 1mm radius and I see your problem. Very poor from Altium.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.