Show Posts
Pages: [1] 2 3 ... 85
1  Using Arduino / Microcontrollers / Re: Reburn STAMP BASIC on: July 18, 2014, 02:45:30 am
Quote
Note that while this board would work pretty well as a general purpose prototype board, it's designed for using the Propeller chip, which isn't even a Basic Stamp...

Maybe I posted the wrong one.  This one is their "professional development" board for the Stamp.  But, I can't find a product page for it, just this documentation.

http://www.parallax.com/sites/default/files/downloads/28138-PDB-Documentation-v2.0.pdf

The board itself and all the peripherals is similar, but not identical, to the one I posted earlier.  Yeah, a little confusing.
2  Using Arduino / Microcontrollers / Re: Reburn STAMP BASIC on: July 18, 2014, 12:43:44 am
Quote
I was gifted a stamp professional development board
There's not enough information there to tell exactly which stamp variation you actually have (there are a bunch.)

I think he is talking about this:

http://www.parallax.com/product/32111

Nice board - I'd keep it.  Nothing from stopping you from plugging in any DIP microcontroller.  In fact, you can plug in Atmel chips like the ATMEGA328P and use everything here except the Stamp with the Arduino environment, you just have to use "Arduino As An ISP" (search on that) or buy one of Atmel's very reasonable and inexpensive programmers.  Or you can buy a PIC programmer and use it with PICs or even reprogram the Stamp <- I see this statement may not be accurate now.  I didn't know that Basic Stamps were based on OTP memory..  You could also easily adapt an SOP microcontroller for this board with a cheap adapter.

Anyway, nice board.  The board is a lot better than the Stamp.  I'd just use one of my Arduinos as an ISP and program the chip on the board.  This thread claims an Arduino can be used to program PICs too.  So you could pic up a few PICs cheap and program them that way after compiling applications in MPLABX.

http://forum.arduino.cc/index.php?topic=92929.0
3  Using Arduino / Microcontrollers / Re: Reburn STAMP BASIC on: July 17, 2014, 11:46:40 pm
Is it c, C#, C++? I am pretty sure it's c++ right????

Microchip does not support C#.  Apparently C++ is only supported on PIC32 devices.  C is the default.  More info here.  It's free to download so I don't see any reason why you wouldn't:

http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
4  Using Arduino / Microcontrollers / Re: Reburn STAMP BASIC on: July 17, 2014, 04:58:03 am
Hi, thank you so much for responding! Is arduino programming language (C++) exactly how c++ syntax is? I.E I go to MPLABX and do the following
Code:
void setup()
{
  pinMode(ledPin, OUTPUT);      
}
would it work? Thank you!! smiley

The responses above are not correct.   I think some signals are getting crossed.  pinMode is not available in MPLABX.

If you are programming a PIC in MPLABX then the code you gave in your post, which is correct for Arduino, would not work for MPLABX.  pinMode is an Arduino function and is not part of MPLABX at all.  Unfortunately, though both the Arduino IDE and MPLABX both use C/C++, the functions that deal with device specific calls like setting up the digital pins and ADC are totally different.  You can't take Arduino function calls and expect them to work in MPLABX - they aren't there.  Only the ANSI C/C++ stuff like variable deceleration, control structures, etc. exist in both environments.  If you want to take that PIC and program it in MPLABX, it is a completely different programming environment.  But it isn't that complex.  It only took me a couple of days to figure out the high-level differences between Microchip and Atmel processors and I can program both so I am assuming you can too.  But, to get the advantage of the Arduino environment (the major advantage is simplicity), you really need an Arduino.
5  Using Arduino / Microcontrollers / Re: Reburn STAMP BASIC on: July 17, 2014, 12:20:10 am
BASIC Stamp is a Microchip PIC microcontroller with a BASIC interpretive runtime on it.  There is no Arduino environment for PICs - what you are asking for is not possible because the Arduino software outputs machine code for certain Atmel AVRs (or certain Atmel ARM chips in later versions), not for PICs.  While I think you are right about BASIC Stamps not being particularly interesting, PICs themselves are great chips, they just use a different toolchain (IDE, programmer, etc.)   If you want to use the Arduino IDE and Arduino's built-in programmer which is right on the board, you should get an Arduino, or a cheap clone if you want to spend the least possible amount of money, though I recommend the real deal from Amazon which is not all that expensive:

http://www.amazon.com/Arduino-UNO-board-DIP-ATmega328P/dp/B006H06TVG/

If you want to reuse the PIC itself that you already own and compile programs for it in C or C++, you want to download the free version of Microchip's compiler (MPLab X) for it and then you will need a programmer.  You actually can use an Arduino as a PIC programmer.  But that would be a more advanced project for later.  The programmer most people use is called PICKit3 and they are around $45.  Some clones on Ebay are less.

http://www.microchip.com/pagehandler/en_us/devtools/mplabxc/
6  General Category / General Discussion / Re: MULTITHREADING POSSIBLE IN ARDUINO BOARD on: June 30, 2014, 01:03:41 pm
Also please start making sense...
7  General Category / General Discussion / Re: Double Micro Push Buttons on: June 30, 2014, 01:02:23 pm
Why do you need two separate throws on the switch?  Is it because you need to send two different voltages?  Or because you are making each throw one of the sides of an "AND" operation where one throw may have a voltage on it and the other not?  If it is the first, you can control two transistor switches to switch in the necessary voltages and if it is the second and everything is logic-level you could simply use an AND logic chip like 74HC08 (these are about 25 cents each).
8  Using Arduino / General Electronics / Re: Protection from cheap power supplies. on: June 30, 2014, 11:27:49 am
After carefully analyzing all the relevant data in this article I have come to the conclusion that 240V is dangerous and Australia should convert immediately to 120V like the U.S. and hire me as their electrical safety czar to oversee the awarding of the relevant contracts.
9  General Category / General Discussion / Re: 2 bit comparator (digital logic) on: June 19, 2014, 03:32:34 pm
Ask Logic Friday.   http://sontrak.com/





10  Using Arduino / General Electronics / Re: SN74LS06 CMOS? on: June 12, 2014, 04:35:23 pm
This is basic design technique with TTL ICs.  NO inputs should EVER float.

http://www.fairchildsemi.com/an/AN/AN-363.pdf

Quote
TYING ALL UNUSED INPUTS TO A SOLID LOGIC LEVEL

Unused inputs on TTL devices float at threshold, anywhere from 1.1V to 1.5V, depending upon the device and its family. While this usually simulates a “high”, many application problems can be traced to open inputs. Inputs floating at threshold are very susceptible to induced noise (transmitted from other lines) and can easily switch the state of the device. A good design rule is to tie unused inputs to a solid logic level. Inputs are usually tied to VCC through a 1 kΩ to 5 kΩ resistor, since tying them to ground means supplying the IIL current instead of the IIH current. IIL is several orders of magnitude greater than IIH. The resistor is recommended to protect the input against VCC voltage surges and to protect the system against the possibility of the input shorting directly to ground. A single 1k resistor can handle up to 10 inputs.

All LS devices are TTL and not CMOS.

How can you not have room for pull-up or pull-down resistors?  If 0603 is too big, use 0402 or 0201.   smiley-twist
11  Using Arduino / Microcontrollers / Re: ATTiny87 core? on: June 11, 2014, 06:40:28 am
Datasheet shows these packages, none DIPs:

Oh, you're right. No DIPs.

The top one will fit on a DIP adapter board though...

And, even low-pin count QFP/QFNs have DIP adapters available.  I've used these and they work great.

http://www.ebay.com/itm/like/181301154033
http://www.ebay.com/itm/like/181325611755

Soldering on the QFNs can be a bit more tricky.  The QFPs are relatively easy, IMHO.
12  Using Arduino / Microcontrollers / Re: ATTiny87 core? on: June 11, 2014, 06:04:00 am

A search of Attiny87s shows only SMT packages at Digikey:

http://www.digikey.com/product-search/en/integrated-circuits-ics/embedded-microcontrollers/2556109?k=Attiny87

Datasheet shows these packages, none DIPs:



13  Using Arduino / General Electronics / Re: MCP4725 DAC circuit on: June 11, 2014, 03:12:26 am
What I2C address are you using?  I can only guess, given the conspicuous lack of code.

Datasheet:

Quote
7.2 Device Addressing
The address byte is the first byte received following the START condition from the master device. The first part of the address byte consists of a 4-bit device code which is set to 1100 for the MCP4725. The device code is followed by three address bits (A2, A1, A0) which are programmed as follows:
• The choice of A2 and A1 bits are provided by the customer as part of the ordering process. These bits are then programmed  hard-wired) during manufacturing
• The A2 and A1 are programmed to ‘00’ (default), if not requested by customer

Adafruit says this:

"This board/chip uses I2C 7-bit address between 0x62-0x63, selectable with jumpers"

This is interesting, because the Microchip datasheet suggests that the address should be 0x60-0x61, dependent on the jumper for A0.  It looks like the chip Adafruit is using has the A1 bit set to 1.  Since you have that A0 pulled low, a factory chip should have an address of 0x60, not 0x62.  I would try all eight addresses from 0x60-0x67 just to be sure.  Did you try that?

Edit:  Also, I would test VOUT with a voltmeter or multimeter to eliminate the ammeter as a possible problem.
14  Using Arduino / Microcontrollers / Re: ATTiny87 core? on: June 10, 2014, 09:09:07 pm
If ATMega8, not sure if I can solder MLF/TQFP

Watch from 21:10 to 21:45 to see how easy it is to do:



I have no particular skill and I can solder 240 pin 0.5mm parts and 144 pin 0.4mm parts with no trouble.

Watch the rest of the video and Dave will explain all.
15  Community / Bar Sport / Re: Your latest purchase on: June 10, 2014, 04:12:37 pm
Well to get this thread back on subject, here is a very cool thing I picked up on E-bay a couple of weeks ago. It's a 328P based component tester that really is a useful piece of test equipment. It uses a simple 9 volt batter for power with auto turn-off for long battery life.

 So while a decent DMM is still the first peice of test equipment a begineer should get, this could very well be the second best thing to get. If you have any questions let me know.

 http://www.ebay.com/itm/291041497713?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

For cheap testers I went with these guys.  Frankly, I trust them a lot more than an anonymous Chinese seller:

http://www.peakelec.co.uk/acatalog/jz_dca55.html
Pages: [1] 2 3 ... 85