hybridfree/eevblog-posts huggingface dataset:
Arduino uno Bit overflow... need help solving this - Page 1
Forum section: electronics / general

author: Unknown
author_rank: Unknown
timestamp: July 31, 2012, 11:33:14 pm
content: I am currently working on my own power supply that is controlled by an arduino. I am having issues with bit overflow, for current 5 volts is going to represent 1 Amp. The 5 volts in pwm is represented with a value of 255 but I would like to convert this value to 1000 mA. Everything I have tried has failed and I know the issue is that there is a loss of data when doing the math due to bit overflow. Can somebody please help.here is the section of code that I am dealing with that I am having the problems with.QuoteThe variables (voltage) and (current) are used much earlier in the program as the PWM outputs.whenever it goes to display the value, instead of displaying a max of 1000 mA it shows a max of 765. and if you do the math, you will see that am losing everything after the decimal place for the "(1000/255)"In the case of the second half those values are read from the analog inputs which are 10 bit not 8 bit. That one will not even show that value at all.

author: Unknown
author_rank: Unknown
timestamp: July 31, 2012, 11:53:03 pm
content: I actually just fixed the issue. I just needed to add a .00 to the end of the numbers I was using.

author: Unknown
author_rank: Unknown
timestamp: July 31, 2012, 11:53:40 pm
content: Quote

author: Chet T16
author_rank: Frequent Contributor
timestamp: July 31, 2012, 11:55:02 pm
content: Is it not because you're using integer division? Changing it to 1000.0 will force it to using floating point?Or am I not reading the question right?

author: Chet T16
author_rank: Frequent Contributor
timestamp: July 31, 2012, 11:56:10 pm
content: Damn you tapatalk and your non notification of replies :p

author: darrylp
author_rank: Regular Contributor
timestamp: August 01, 2012, 12:20:52 am
content: the MAP function will scale values from one range to another.its documented on the arduino.cc web page.
HI, Im a little confused! - Page 1
Forum section: electronics / general

author: metalsapo
author_rank: Newbie
timestamp: July 30, 2012, 07:01:16 pm
content: Hi guysinclude girls.asmorg 00I'm so confused because yesterday i watched some episodes, and Dave said that getting the Arduino is a good start, a way to approach in an easy way, and that it is a professional interface, programmer, debugger, microcontroller, and that PICAXE was not, and in other part of the same episode he said something that programming in assembler is hard and all that, and programming in a higher level IDE and language will make the future.Later another episode was about the PICkit 3, and it actually sucks, and i have the PICkit 2, so i was happy for a moment, but, I'm relearning to program microcontrollers with microchip, PICkit 2, assembler, later with C, with a book named, Designing Embedded Systems with PIC Microcontrollers, Second Edition: Principles and Applications and the books has taken me to program some things, and to copy and simulate, i´m in chapter 5, the thing is that soon or later, there must be a way to learn it, so, if someone has a shortcut to program microcontrollers, and make it count as serious, or tell me your experience if you like.Thank you again.Estuardoend

author: kfishy
author_rank: Newbie
timestamp: July 30, 2012, 09:32:36 pm
content: Hi Estuardo,I would start off with C if I were new to embedded programming and microcontrollers. From the Amazon reviews and TOC it looks as though your PIC book starts off with assembly, then goes into C; IMO I don't think that's the correct pedagogical order for modern microcontrollers where programming in C is the norm. It could be because the book is built around 8-bit PICs which don't have the most C-friendly architecture; I'd imagine a book about PIC32 would start off with C instead and only touch on assembly.Another advantage of starting with C is that much of what you learn is transferable to other MCUs. Code to set and clearing bits in a memory-mapped device register is the same with only pointer addresses varying*, and the compiler/linker hides the idiosyncrasies of the memory model (most of the time). Your knowledge is then not locked in to a single vendor.Tony*Of course this overlooks things like endianness, alignment, and timings, but that's what datasheets and reference manuals are for

author: metalsapo
author_rank: Newbie
timestamp: July 31, 2012, 06:58:38 pm
content: That is so interesting, yes, C is the next step, a few days later i noticed that ok, assembler is not hard, its so tedious, and remembering a week later a code is like playing puzzles with myself, but the good thing is that i have no pressure to learn it in a weekend, and i have this feeling that i´m just learning the right way, progressively into today.Im not new in programming and assembler for the SPIM was the University´s method with HC08 motorolla microcontrollers with assembler, and the programming in C was before that, so i´m a little familiarized, but its hard to remember.If i have some questions i will post.Thanks guys.
AVR dragon any good? - Page 1
Forum section: electronics / general

author: SuperMiguel
author_rank: Regular Contributor
timestamp: July 19, 2012, 03:27:01 am
content: AVR dragon any good?I like the dragon rider =) (http://www.ecrostech.com/AtmelAvr/DragonRider/index.htm)

author: ju1ce
author_rank: Regular Contributor
timestamp: July 19, 2012, 05:36:34 am
content: Really, the Dragon is unreliable. I didn't believe it either until I killed mine. Luckily Atmel gave me a new one which I sold and then bought AVRISP mkII. I think you'd be better off doing the same even though Dragon Rider looks nice.

author: Unknown
author_rank: Unknown
timestamp: July 19, 2012, 01:06:59 pm
content: Was this the Dragon with or without mounting holes? The new ones with mounting holes are said to be more robust. I haven't heard of one of them committing suicide yet. The AVRISP mkII is more reliable, but it's hard to beat the Dragon on features. The next step up from the Dragon with debugging support is the JTAGice mkIII.

author: olsenn
author_rank: Frequent Contributor
timestamp: July 19, 2012, 01:16:29 pm
content: I wouldn't really recommend the AVRISP mkII as it only does ISP programming and you can do this with an arduino, a bus pirate, or just about any other multi-use tool. It does have a nice case, and if you are going to be doing a lot of ISP for 8-bit AVR micros then it may do fine for you, but the AVR Dragon is MUCH better!I have an AVR Dragon (one of the newer models with the mounting holes) and I've never had any problems with it. I even own an AVR ONE!, Atmel's most expensive debugger, and other than the lack of protection, I think the Dragon is better. The biggest reason to get the AVR Dragon over the others is that it supports High Voltage programming, which I promise you will save your but many times when you start to mess with fuses.One last note; stay clear of cheap clones on ebay... they tend to not work with AVR Studio and are cheaply made.

author: aluck
author_rank: Regular Contributor
timestamp: July 24, 2012, 05:34:05 am
content: Don't waste your money, get an AVR JTAGE ICE mkII clone from ebay.

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: July 24, 2012, 05:53:08 am
content: I haven't tried the other ones,I put a zif socket onto my Avr Dragon.Never had any problems.I can't say that about many programmers.

author: aluck
author_rank: Regular Contributor
timestamp: July 24, 2012, 09:19:42 am
content: Quote from: HackedFridgeMagnet on July 24, 2012, 05:53:08 amas a programmer - it's not bad at all, but as a debug tool... had a lot of trouble trying to use debugWire with ATMega 168. it turns out, Dragon doesn't support this chip. diagnostic messages were obscure, and as it was a new design I was not sure if it is my PCB, software or Dragon. after getting JTAG ICE mkII didn't have any trouble at all.
Please can you help me with the gtp plus - Page 1
Forum section: electronics / general

author: mares250
author_rank: Newbie
timestamp: July 15, 2012, 06:58:38 pm
content: Greetings, I am taking the first steps in the great world of microcontrollers and I'm learning to program with pic basic pro proteus simulate and 7, the program to load the pic is the WinPic800, my question is if any of you I can help with the firmware for the 18f2550 programmer to build the GTP PLUS because this unit does not get in my area or is too Expensive, please.
assigning multiple outputs in assembler - Page 1
Forum section: electronics / general

author: tiofilo75
author_rank: Contributor
timestamp: July 24, 2012, 08:39:18 pm
content: Hello everyone, I am a total newb with PIC and I am currently learning on my own with a book and what ever I can read from the net. My question is that I am currently trying to light up multiple LEDs with a 16f887 and when i am making the ports as inputs and outputs i tried to figure out if its possible to assign them in the same line. I tried putting a comma but I got a build fail. I have a feeling that you cant and that i am stuck with assigning each port individually.

author: notsob
author_rank: Frequent Contributor
timestamp: July 24, 2012, 09:03:36 pm
content: If you are using ASM try PIC tutorials at pcbheaven.com

author: IanB
author_rank: Super Contributor
timestamp: July 24, 2012, 09:07:31 pm
content: Usually each line of assembly converts to a single machine instruction, and typically a single machine instruction performs one small and simple function.If you are using a macro assembler (most assemblers are) then it may be possible to use a pre-defined macro or to write a macro to achieve several steps in one macro instruction.You may wish to look at the PIC datasheet for reference. It will explain all of the available instructions and what they do.

author: tiofilo75
author_rank: Contributor
timestamp: July 24, 2012, 09:12:21 pm
content: Thanks for the site, haven't looked at that one yet

author: David_AVD
author_rank: Super Contributor
timestamp: July 24, 2012, 09:19:37 pm
content: To set the port directions, you'll typically do something like this:Code:BANKSEL TRISA ;select the correct register bank for the TRIS registerMOVLW b'00000011' ;set the bits (7..0) to be set as input or output (1 = input and 0 = output)MOVWF TRISA ;send that byte to the actual TRIS register
Arduino pwm frequency? - Page 1
Forum section: electronics / general

author: blackjames
author_rank: Regular Contributor
timestamp: July 01, 2012, 12:59:52 pm
content: Hello, im wondering what the frequency is for arduino pwm. Thats all i need to know

author: PeterG
author_rank: Frequent Contributor
timestamp: July 01, 2012, 01:23:56 pm
content: A quick Google found this.http://arduino.cc/en/Tutorial/SecretsOfArduinoPWMRegards

author: blackjames
author_rank: Regular Contributor
timestamp: July 04, 2012, 05:29:03 am
content: thx
New Microchip dev kit promotion ends 29th of June - Page 1
Forum section: electronics / general

author: ChrisW
author_rank: Contributor
timestamp: June 29, 2012, 01:07:19 pm
content: I found this link thanks to Dangerous prototypes it is for a PIC24F microstick;https://ordering.digikey.com/promotions/tradeshow.aspx?id=9Unfortunately shipping to Australia sucks.Dangerous Prototypes article;http://dangerousprototypes.com/2012/06/29/microchip-promotion-pic24f-microstick-for-9-99/-Chris

author: caroper
author_rank: Regular Contributor
timestamp: June 29, 2012, 01:16:36 pm
content: You are better off with this one:https://www.eevblog.com/forum/microcontrollers/cheap-microchip-dev-kit/Not sure when it expires but it comes with a PIC24, PIC33 and a PIC32MX2, it is Version 2 of the board you linked too and is less than half the price.CheersChris

author: notsob
author_rank: Frequent Contributor
timestamp: June 29, 2012, 01:20:48 pm
content: woftamif you want to program PICs via ICSP or just DIPstryhttp://www.sureelectronics.net/goods.php?id=1128http://www.sureelectronics.net/goods.php?id=1351http://www.sureelectronics.net/goods.php?id=22a few selections for you - but all are a little bit more universa

author: ChrisW
author_rank: Contributor
timestamp: June 29, 2012, 02:17:26 pm
content: Quote from: caroper on June 29, 2012, 01:16:36 pmI purchased the other one. I am just reporting on a new promo. I have no intention of buying this new one. The comment about the shipping is just that, a comment.-Chris

author: notsob
author_rank: Frequent Contributor
timestamp: June 29, 2012, 02:28:08 pm
content: Agree, I have an explorer 16 with ICD & attach boards - I was making a low cost soln for a starter

author: MikeK
author_rank: Super Contributor
timestamp: June 29, 2012, 04:22:19 pm
content: I'm ordering one, but they're currently out of stock. Supposed to be available middle of July.
Intel Hex format and PIC 12F675 - Page 1
Forum section: electronics / general

author: pyroesp
author_rank: Regular Contributor
timestamp: July 03, 2012, 12:29:53 am
content: Hey everyone,I couldn't find a free MPASM decompiler so I thought, why not make one ?So I've just started yesterday. My ihex parser is done, it doesn't take everything into account, like the address of the first byte on a line or any other record type than 00, but it returns a pointer to an array filled with 'raw' data.(Note : I probably should add the address of each byte, maybe I'll do it after I'm done with this post)I'm using a program (written in MPASM) I recently made and I've just noticed something and I don't know why it's there.Take a look at the 2nd line of the end of my hex file:QuoteThat line tells me that the value 0x3FB4 will be written at address 0x400E in the microcontroller.But the program memory map of the 12F675 only goes to 0x1FFF.Also, 0x3FB4 can be translated to:QuoteWhy would there be an ADDLW 0xB4 at address 0x400E ?(Note : I never used ADDLW in my program)The record type on that line is '00' so it's getting written in the data array as well.Any thoughts on this ?pyroesp

author: Psi
author_rank: Super Contributor
timestamp: July 03, 2012, 12:47:36 am
content: Could it be EEPROM?I dunno about PICs but with AVRs you can set it to increment an EEPROM address every time you flash your device.Does the value change at all?

author: pyroesp
author_rank: Regular Contributor
timestamp: July 03, 2012, 12:52:17 am
content: I didn't do anything to write in the EEPROM and I think if there's something to flash to the EEPROM it will be written in another hex file (name.eep.hex or something like that).I have cleaned and build the project again and the value doesn't change.pyroespEDIT:Just checked if this was the CONFIG bits address, but no, these are at 0x2007.

author: Psi
author_rank: Super Contributor
timestamp: July 03, 2012, 12:59:49 am
content: Maybe it's just packing it out with random data to get a specific length?

author: pyroesp
author_rank: Regular Contributor
timestamp: July 03, 2012, 01:14:19 am
content: I should have searched before asking, sorry.It seems to be the config bits (stupid me, how else could they be written ?).This is what I found, but if someone can explain this to me, because I don't understand it.QuoteEDIT:Nevermind, I found it. 0x2007 = (0x400E / 2).I suppose this is the config address of all mid-range MCUs ?How else can the decompiler tell if it's an MPASM instruction or CONFIG word, right ?

author: pyroesp
author_rank: Regular Contributor
timestamp: July 03, 2012, 03:27:16 pm
content: I'll answer my own question0x2007 is the CONFIG address of all 14 bit core PIC MCU, see chapter 27.1 :http://ww1.microchip.com/downloads/en/devicedoc/33023a.pdfpyroesp
Single-ended serial transmission question. - Page 1
Forum section: electronics / general

author: Randall W. Lott
author_rank: Regular Contributor
timestamp: June 15, 2012, 06:55:50 pm
content: On my recent project, which contains a microcontroller and a peripheral UART device, I am getting transmissions that appear to have a fairly substantial slope. The appearance of short "1's" look triangular. Is this because of the 50MHz oscilloscope bandwidth acting as a low pass filter, or is it a design issue?The baudrate is slow; at 9600. I don't have access to a logic analyzer.I assumed that slow serial streams could be viewed in decent detail with a 50MHz oscilloscope.Thank you.

author: johnmx
author_rank: Frequent Contributor
timestamp: June 15, 2012, 07:06:21 pm
content: Apparently there is nothing wrong with the scope. You should have a problem in the circuit.Post the schematic if you can.

author: Randall W. Lott
author_rank: Regular Contributor
timestamp: June 16, 2012, 02:48:33 am
content: Actually, it's a complete module that transmits a stream. Insufficient power supply filtering? I'll hook it up to a lab supply and see if the data is slewed. I used a capacitor that is larger than the recommended value and used decoupling capacitors on every power pin on my design. I designed my power section to provide more current than worst case.

author: Psi
author_rank: Super Contributor
timestamp: June 16, 2012, 03:57:59 am
content: You can see each sample the scope took of the signal.It looks like you zoomed in on scope memory a little far, rather than a problem with the signal itself.Try using the trigger/holdoff settings to capture the signal at a faster timebase, rather than zooming in on a slow timebase capture.I think you will find the signal is actually nice an square.
Best platform to do robotics on? - Page 1
Forum section: electronics / general

author: SuperMiguel
author_rank: Regular Contributor
timestamp: June 07, 2012, 08:15:34 pm
content: Best platform to do robotics on?

author: Erwin Ried
author_rank: Regular Contributor
timestamp: June 07, 2012, 08:19:41 pm
content: Does god exist? What's the meaning of life?

author: 8086
author_rank: Super Contributor
timestamp: June 07, 2012, 08:36:08 pm
content: For some reason I'm thinking Parallax PropellerCouldn't really argue for it though

author: SuperMiguel
author_rank: Regular Contributor
timestamp: June 07, 2012, 08:44:02 pm
content: i think most hobiest use arduino but they are doing simple stuff.. When you trying to get more into AI, what do ppl use??Also im not taking something as high as ASIMO that uses a 3d cpu (http://www.digitalworldtokyo.com/index.php/digital_tokyo/articles/honda_creates_3d_cpu_to_power_super_asimo)But something in between arduino and that 3d cpu... I know that most of the time ppl using arduino have to use interrupts to do multiple things at the same time, but u run out of them really quick...

author: 8086
author_rank: Super Contributor
timestamp: June 07, 2012, 08:47:21 pm
content: Quote from: SuperMiguel on June 07, 2012, 08:44:02 pmLook into Parallax Propeller - 8 concurrent processing cores, no interrupts

author: SuperMiguel
author_rank: Regular Contributor
timestamp: June 07, 2012, 09:32:10 pm
content: Quote from: 8086 on June 07, 2012, 08:47:21 pmNice! Parallax still using ASM or they work on C now?

author: Erwin Ried
author_rank: Regular Contributor
timestamp: June 07, 2012, 10:19:11 pm
content: I think there is no "best" platform for anything, it is a very broad question. What is the purpose of your robot? if requires high power I can think on a combination of low level things and a big cpu like an atom or arm.In the past I built a robot with arduino and a netbook to do image processing from a camera and it worked OK, but as I said depends a lot on your objective.

author: nctnico
author_rank: Super Contributor
timestamp: June 08, 2012, 12:23:02 pm
content: Lego mindstorms comes to mind.
Issues with PIC and XBEE sending data - Page 1
Forum section: electronics / general

author: montcler
author_rank: Contributor
timestamp: May 26, 2012, 06:47:46 pm
content: Hello,At last XBEE communicate with each other but ....!I would like to know when the XBEE convey that is connected to the PIC 18F2550, the PC that is connected with another explorer XBEE a USB card, I get on the console of PC rare codes instead of what I really want to transmit.The two Xbee are configured at 1200 baud.I removed the module XBEE Adpater USB card, and then connected the output of the PIC directly to the input of the USB adpater.And still not working, I still see strange characters on the console.I've been trying days but nothing at all, I would appreciate your help.explorer XBEE a USB card:http://www.ebay.es/itm/ws/eBayISAPI.dll?ViewItem&item=280845443252&ssPageName=ADME:L:OU:ES:1123That is if I carry this PIC to PC: (Theory)7 x 1 = 77 x 2 = 14"""7 x 10 = 70The PC Console visualize this: (Practice)ãÿCýýCý ýŽîãÿCýýý ayyýŽîãÿCýýCý Cyy ayy ýŽîãÿCý ycI hope your help, Thanks.-------------------------------------------------- ----------Here the code:-------------------------------------------------- -----------Device = 18F2550Declare Xtal 20ALL_DIGITAL trueDim x As ByteHserial_TXSTA = %100000 'Asynchronous transmission modeHSERIAL_BAUD 1200 'Baud rate fixedRsout_Pin = PORTC.6 'Data Output Pin (TX-Out))Rsout_Mode = 0Hserial_Clear = On 'Bufeer cleaned after each receptionINI:For x=1 To 10HRSOut "7 X ", Dec x, "= ", Dec x * 7 , 13Next xGoto INIENDTHX..

author: Unknown
author_rank: Unknown
timestamp: June 01, 2012, 10:48:01 am
content: Hi, I'm no expert but as no-one has replied to your post this might be of help.Configuring, I found this, might be of help.http://www.instructables.com/id/Changing-Xbee-Baud-Rates/?ALLSTEPSAlso if the modules are setup correctly ie. same baud rate, wired up etc, then the fault is more than likely in your code or pic setup. Your code looks to be of the high-level basic kind which should take care of the data transfer for you providing it's all setup correctly; One thing to check is if in your pic software code the xtal speed isn't the same as your real pic hardware xstal your baud rate will be wrong.If you have access to a digital oscilloscope, send a single character like 'A' repeated in your pic code and take a look and see what the output and timing is like.I've never used this module but I have used an ebay ttl bluetooth module.I hope this helps.
Measure current and voltage via ADC - Page 1
Forum section: electronics / general

author: powermosfet
author_rank: Newbie
timestamp: June 01, 2012, 05:09:19 pm
content: Hi,How to measure current and voltage using microcontroller ADC input.voltage range is up to +11v and current is about 5 amps.I use a voltage divider to get the voltageVi=11VRA=1k2RB=1kVo=RB/RA+RB*Vi -> with about .2 errorare there any better ways to protect the microcontroller input?thank you.

author: Erwin Ried
author_rank: Regular Contributor
timestamp: June 02, 2012, 12:29:17 am
content: Have you seenhttp://www.ebay.com/itm/5A-range-Current-Sensor-Module-ACS712-Module-NEW-/130704791796?pt=LH_DefaultDomain_0&hash=item1e6e9cd8f4this kind of modules?I bought ones but I never used them (I am using a small coil with a TA-220) to do the same
ADF4350 PIC control code ? - Page 1
Forum section: electronics / general

author: bdivi
author_rank: Regular Contributor
timestamp: May 29, 2012, 12:42:31 pm
content: Hello,I am working on a signal generator project using the ADF4350 VCO/PLL that I am trying to control using PIC18F4520.I would appreciate some examples/source code from someone that did it already.Thanks,bdivi

author: joelby
author_rank: Frequent Contributor
timestamp: May 29, 2012, 11:00:56 pm
content: From memory, it just requires some straightforward SPI. I posted a comment on an article about the ADF4350 about how to program a completely different AD chip, but it might give you some ideas. Please seehttp://www.sharebrained.com/2011/10/25/adf4350-vcopll-breakout-board/.
my-boardclub.com - did they send you something? - Page 1
Forum section: electronics / general

author: aluck
author_rank: Regular Contributor
timestamp: May 21, 2012, 09:22:04 am
content: I stumbled uponhttp://www.my-boardclub.com/, applied for membership and even got a nice package of their membership card and several issues of Future Technology Magazine (pure ads, in one form or the other).Also I applied for several boards they offer. But Inever ever got any response- not approved, not rejected, nothing. Needless to say, no boards either.Is it always the case, or they are seeking for a big fat customer applying for a free demo board? My designs are < 10000, and that's what I honestly told them.

author: Bored@Work
author_rank: Super Contributor
timestamp: May 21, 2012, 04:52:13 pm
content: They say somewhere they vet members. I could imagine they also do this for each board request, in corporation with the board and IC manufacturers. Or maybe this board club is just to collect sales leads, they forward the sales leeds to the participating manufacturers, and the manufacturers then give a shit.I could further imagine that your location is a problem, i.e. the manufacturers having no interest in doing small business in your area, so they don't provide boards to Future to forward to you.I would take this as a hint to take your business to other manufacturers. To those from which you can get boards, with or without the help of Future.But if you want to deal with Future and their board club, give them a call, using this old fashioned telephone thing, i.e. not e-mail, and directly ask them what is going on.
FTDI   FT232/245BM programmer vs. PIC-programmer-software issues. - Page 1
Forum section: electronics / general

author: R-M-I
author_rank: Contributor
timestamp: May 29, 2012, 01:03:39 pm
content: Hi there..I have a programmer-cable \ USB-> serial converter that I want to connect directly to a board using a PIC16F877A.The programmer-cable\device is a FT232\245BM according to FTProg. And it is a FTDI device.The problem I have here is that the 3rd party PIC-programmer-software doesn't seem to want to detect the programmer-device..To be able to use my programmer I need to know what pins the following are:MCLR \VppPGM \ VddClockData OutData InAny suggestions as to how I can figure out how to set this thing up with the pic-programmer?I've tried reading the data-sheets and all, but I can't seem to find what I need..-Remi

author: free_electron
author_rank: Super Contributor
timestamp: May 29, 2012, 03:24:10 pm
content: Thats just a usb to serial converter... Not a programmer !What programming software ?

author: MikeK
author_rank: Super Contributor
timestamp: May 29, 2012, 04:51:57 pm
content: Duplicate thread:https://www.eevblog.com/forum/projects-designs-and-technical-stuff/ft232245bm-gt-pic16f877a/msg115496/#msg115496
PIC 12F683 low PWM output voltage - Page 1
Forum section: electronics / general

author: lk
author_rank: Regular Contributor
timestamp: May 14, 2012, 08:45:40 am
content: Greetings,i have noticed something odd with the output voltage on my PIC 12F683, the CCP1 module outputs around a signal that is around 0.9 Vpp, and this strikes me as odd, i have a scope on it, the duty cycle changes as i would expect. Maybe I'm naive, but i would have expected a 5Vpp signal coming from the 12f683.The only thing i can think of that is that it has something to do with this maybe110x = PWM mode active-high111x = PWM mode active-lowBut I'm not clear on what this mean, but i suspect that it has something to do with the duty cycle is counted on high or low, but I'm not sure.So if anyone could enlighten me it would be great, I'm sure its something simple

author: lk
author_rank: Regular Contributor
timestamp: May 14, 2012, 02:51:11 pm
content: Opps, looks like the pic is indeed putting out 5volts, there was a problem in my circuitryLooks like i get a voltage drop of around 4 when i connect to a base/gate for a transistor. "floating" i have 5 volts on the pin, and the pwm signal looks perfect.-lk

author: metalphreak
author_rank: Frequent Contributor
timestamp: May 14, 2012, 05:26:09 pm
content: You should be using a current limiting resistor between the PIC output pin and the transistor base. From what I remember you can only source about 20mA max from each micro pin.There should be ~0.7v drop across the transistor base-emitter juntion. If the emitter is connected to ground with the load on the high side, then the rest of the voltage will be dropped across the base resistor. If your measuring point was on the base pin, you'll only have been measuring that base-emitter voltage, not the output from the PIC

author: lk
author_rank: Regular Contributor
timestamp: May 14, 2012, 05:48:55 pm
content: Thanks,i have it solved, turned out to be a faulty fan, combined with my inability to read the display on my psu-lasse
blown arduino chip - Page 1
Forum section: electronics / general

author: blackjames
author_rank: Regular Contributor
timestamp: May 06, 2012, 07:48:48 am
content: hi. i've owned an arduino uno for about a year, but something went wrong the other day; the smd atmega 328 blew up, because i accidently connected 12v to the 5v rail instead of Vin. although i can do basic through hole soldering, smd is not the thing for me or my weller soldering iron, so could someone replace the chip for me, for less than 20 australian dollars. i live in melbourne, so ideally i dont want to send it out of victoria. please contact me at blackjames098@gmail.comthanks for any help or suggestions.

author: PeterG
author_rank: Frequent Contributor
timestamp: May 06, 2012, 08:05:40 am
content: Best option here.http://www.ebay.com.au/itm/Atmega328P-Mega-328-Arduino-compatible-UNO-2011-free-USB-cable-00960-/280873942518?pt=LH_DefaultDomain_15&hash=item4165643df6#ht_909wt_1154And it has a socketed chip.Regards

author: McMonster
author_rank: Frequent Contributor
timestamp: May 06, 2012, 10:55:39 am
content: http://ruggedcircuits.com/html/ruggeduino.htmlProbably even better option there.

author: Mint.
author_rank: Frequent Contributor
timestamp: May 06, 2012, 11:06:08 am
content: Quote from: McMonster on May 06, 2012, 10:55:39 amHa! Genius!

author: blackjames
author_rank: Regular Contributor
timestamp: May 06, 2012, 09:16:28 pm
content: looks awesome, i wanna buy one, although another members mailing me an arduino compatible board.
Period meter using PIC18F452,... - Page 1
Forum section: electronics / general

author: bobx
author_rank: Newbie
timestamp: May 02, 2012, 07:14:41 pm
content: Hello,everybody.I want tomeasure the period of an input signal at the range of 10 usec to 1 sec,using; PIC18F452 or PIC18F8722,XTAL=40MHZ and with mikroC PRO for PIC V5.30 compiler&T6963C GLCD.I wrote some codes and tested them with Proteus but all of those display wrong.Would you please help me for that and give me a code example for that?Thanks,

author: GrumpyDave
author_rank: Contributor
timestamp: May 03, 2012, 10:15:54 am
content: Hi, welcome to the forum!You havent really given much information on what problems you are having..You could use the CCP peripheral to measure period of some square pulses.The Microchip CCP tips pdf may be helpfull.http://ww1.microchip.com/downloads/en/DeviceDoc/41214a.pdfWithout more info from you about your project its difficult to help.

author: MikeK
author_rank: Super Contributor
timestamp: May 03, 2012, 02:24:22 pm
content: If it's an audio signal you can setup a simple zero-crossing detector with a couple resistors and diodes and feed that to an interrupt pin on the PIC.
PIC internal ADC Aquisition Time delay - Page 1
Forum section: electronics / general

author: steaky1212
author_rank: Regular Contributor
timestamp: April 18, 2012, 10:02:41 pm
content: Hi,I've got a project with a programmable FM transmitter (Atmels ATA5749) and an RF power detector (MAX2015).They are both connected to a single PIC, and I am trying to auto-adjust the power of the transmitter using the PIC as a controller.The ATA5749 is initialised using SPI, then modulates whatever you send to it. The chip is designed for automotive applications - such as in a remote keyfob. Due to this, the chip only transmits when data is sent to it - as opposed to constantly sending a carrier wave.The MAX2015 outputs an analogue voltage that I can read using my PIC's internal ADC, but I have to stop transmitting to read in the ADC.Am I right in saying that by setting ADCON2.ACQT (A/D Acquisition Time Select) to 20TAD, I can delay the start of the acquisition by 20*TAD (where TAD equals ~1us) or ~20us.By extension, I can set the delay to ~20us, tell the ADC to start, start the transmission, actually start ADC, complete ADC, complete transmission, and read the ADC - thereby getting the power level of the trasmission.What do you gus think?Many thanks,Steakyp.s. I've already cut the PCB so I cant really add an op-amp hold circuit etc.

author: Baliszoft
author_rank: Frequent Contributor
timestamp: April 18, 2012, 10:24:07 pm
content: It should work that way, yes. Though you can use the adc to sample continuously as it has got a sample & hold circuit in it, so it is not a problem if the input is changing.

author: poorchava
author_rank: Super Contributor
timestamp: April 20, 2012, 02:06:17 pm
content: I think it depends on kind of PCI micro. There are some like dsPIC where you could just set the ADC to free run and dump the readings into RAM over DMA, and then find maximum when time critical part (transmission) is over.Also, I have a strong feeling that ADCON2.ACQT adjusts rather sampling time (the time when input switch is on and input voltage is loading internal storage capacitor) rather than a plain delay.Another option would be to utilize some stand-alone sample-and-hold amplifier which would be triggered with logic signal + some crude delay-timer (dunno if ne555 can do such speed, but it could be worth a try)

author: steaky1212
author_rank: Regular Contributor
timestamp: April 21, 2012, 06:11:21 pm
content: I'm using a pic18lf13k22 (or 14k22), and it seems to be working fine now.By setting ADCON2.ACQT to 20, I am increasing the amount of time the input cap is charging effectively delaying the beginning of the conversion.I dont know if I am getting the correct absolute values, but it is acceptable for relative values.Thanks for your help
Linux on 8 Bit Micro - Page 1
Forum section: electronics / general

author: Write_to_Smokegenerator
author_rank: Regular Contributor
timestamp: April 05, 2012, 01:58:53 pm
content: http://dmitry.co/index.php?p=./04.Thoughts/07.%20Linux%20on%208bitWell, I found this a couple of days ago, forget to share it, what are your thoughts about this?Well it could become useful to some people (he at least uses it)"I used it to day to format an SD card"cheers.

author: PeterG
author_rank: Frequent Contributor
timestamp: April 05, 2012, 11:33:14 pm
content: My first thought is 'Why?'........ but it is a cool project at least.Its 2 hour boot time is a bit slow for me......Regards

author: george graves
author_rank: Super Contributor
timestamp: April 06, 2012, 12:16:24 am
content: I don't buy it.

author: Unknown
author_rank: Unknown
timestamp: April 06, 2012, 01:10:45 am
content: Quote from: PeterG on April 05, 2012, 11:33:14 pmCould just fire up an old PDP-11 to relive the 2 hour boot-up experience.

author: T4P
author_rank: Super Contributor
timestamp: April 06, 2012, 05:09:43 pm
content: Geez . Attempt any windows emulation on a low-end Cortex and i will guarantee you 3 hour startups .

author: McMonster
author_rank: Frequent Contributor
timestamp: April 06, 2012, 08:18:31 pm
content: Quote from: Dave.S on April 06, 2012, 05:09:43 pmSome older versions (95 or even 98 I think) can boot on Dosbox on Nokia N95, not the most recent piece of hardware.

author: T4P
author_rank: Super Contributor
timestamp: April 07, 2012, 01:57:04 am
content: Quote from: McMonster on April 06, 2012, 08:18:31 pmYes . Ala 1995 . 332 MHz Dual ARM 11 is still more then what a Cortex has .But in any case , man , it's a joke !Cortex is meant to be a cheap and useful ARM core that can do alot of things cheap 32bit mcp's usually can't do .And honestly , the pic32MX is a fail .
AVR Studio 5.1 Installation Walkthrough - Page 1
Forum section: electronics / general

author: btfdev
author_rank: Contributor
timestamp: April 02, 2012, 04:17:43 pm
content: Hello friends,AVR Studio version 5.1 came out last month, we did a fresh Windows / AVR Studio installation and everything worked without a problem. Posting a quick installation walk though for reference. Pay attention to the sequence when applying .NET service packs.Hope this helps.http://www.binarytaskforce.com/Weblog/2012/02/19/avr-studio/BTFdev

author: sacherjj
author_rank: Frequent Contributor
timestamp: April 02, 2012, 05:06:24 pm
content: Does AVRISP II still not work with Version 5? I've only installed 4, due to this.

author: olsenn
author_rank: Frequent Contributor
timestamp: April 02, 2012, 05:18:39 pm
content: I didn't think installing AVR Studio was complicated enough to warrant a walkthrough, haha. At any rate, version 6 is now available
Compilation Error 8051 - Page 1
Forum section: electronics / general

author: Muhammad Nasar
author_rank: Contributor
timestamp: March 23, 2012, 03:05:51 pm
content: I have written a C programe to interface AT89S52 with LCD, but when i compile this programe in Microvision Keil 4, it gives this error:Error:*******************************************MAIN.c(9): warning C206: 'lcdcmd': missing function-prototypeMAIN.c(9): error C267: 'lcdcmd': requires ANSI-style prototype*************************************************The programe is as follows:****************************************************************************#include <reg52.h>sfr ldata= 0x90;sbit rs = P2^0;sbit rw = P2^1;sbit en = P2^2;sbit busy = P1^7;void main(){lcdcmd(0x38);lcdcmd(0x0E);lcdcmd(0x01);lcdcmd(0x06);lcdcmd(0x86);lcddata('M');lcddata('D');lcddata('E');}void lcdcmd(unsigned char value){lcdready();ldata= value;rs=0;rw=0;en=1;MSDelay(1);en=0;return;}void lcddata(unsigned char value){lcdready();ldata= value;rs=1;rw=0;en=1;MSDelay(1);en=0;return;}void lcdready(){busy=1;rs=0;rw=1;while(busy==1){en=0;MSDelay(1);en=1;}return;}void MSDelay(unsigned int itime){unsigned int i, j;for(i=0;i<itime;i++)for(j=0;j<1275;j++);}**************************************************************************************A screen shot has also been attached

author: Bored@Work
author_rank: Super Contributor
timestamp: March 23, 2012, 03:41:14 pm
content: Exactly what the compiler says. You are using a function before the compiler has seen at least a declaration of the function. Either add a forward declaration, or move the function and main in the compilation unit around, so the function definition is before the first usage.

author: Muhammad Nasar
author_rank: Contributor
timestamp: March 23, 2012, 07:08:20 pm
content: Thanks, Problem solved
PIC32 programming with pickit 3 - Page 1
Forum section: electronics / general

author: RoadRunner
author_rank: Frequent Contributor
timestamp: March 05, 2012, 01:46:38 pm
content: sir,i have quite experience working with 8bit 16bit pic but this is first time i m moving to pic 32 .currently i m working with PIC32MX440F128H but there are certain problems withe programming ,i have connected the pic as the circuit suggested by microchip i even connected the 10uf cap on vdd core pin.i can read the device quite well,i can erase the device.but wen i try to program itthe pickit always saysboot flash programming failedand some times it just sayprogramming failedwhat the problem could be it this a software (like configuration word )or the hard ware

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: March 09, 2012, 06:32:37 pm
content: Try posting your question on the Microchip forums.

author: wkb
author_rank: Super Contributor
timestamp: March 09, 2012, 06:53:23 pm
content: Is the power supply used adequate / in good shape?
Arduino Ethernet shield help - Page 1
Forum section: electronics / general

author: jackbob
author_rank: Regular Contributor
timestamp: March 08, 2012, 02:41:10 am
content: Recently I bought an Ethernet shield for my arduino UNO board and am having troubles getting it to work correctly. I will let you know that I am a beginner at microcontrolers but I do know all the basics of the arduino code. I have programmed things like led cubes and infrared controllers and other little projects that's about top notch for me as of now. There are several problems I think there could be. I am using an official arduino board but an off brand ekitszone Ethernet shield. This shield used the enc28j60 Ethernet chip and the official arduino shield uses a different one. I feel this is the reason the examples from arduino don't work for this shield. I did some research and can't find any good code to get this board running. I would like to get it running a simple web server or web client. Any help or suggestions from some of you who specialize in this area would be greatly appreciated. Thanks,Jacob.

author: andyg
author_rank: Regular Contributor
timestamp: March 08, 2012, 03:01:13 am
content: The ENC28J60 chip based shields isn't compatible with the (official arduino) Wiznet W5100 based shields.There are a few arduino libaries around for using for the ENC28J60. It would be best to search the arduino forums.The ENC28J60 doesn't have the TCP/IP stack built into the hardware like the Wiznet, so the cost is it takes a lot more effort and SRAM on the arduino to run it, as you have to implement it in your code/library. But it's still usable for small applications.

author: andyg
author_rank: Regular Contributor
timestamp: March 08, 2012, 03:03:41 am
content: Here is a library:http://www.nuelectronics.com/estore/index.php?main_page=project_ethI don't know if this is the same shield as yours, if not you'll have to check your Chip/Slave Select line is configured right.

author: jackbob
author_rank: Regular Contributor
timestamp: March 08, 2012, 05:07:31 am
content: andyg, my shield is somewhat similar. It is made by the same people but i think its a newer version. The HanRun sticker is the same HR911105A the second line reads 11/16 though (I don't think this matters). The one i have looks to be laid out a bit different and has an sd card slot built in it. I tried the codes from the website and they opened but they had errors when I compiled them. Some code was not recognized or typed right? I tried to make some adjustments to the code, but as I said the ethernet codes are new to me and a little advanced for me to identify exactly where the error is.

author: andyg
author_rank: Regular Contributor
timestamp: March 08, 2012, 12:22:58 pm
content: Did you install the library properly, i.e copy the EtherShield directory into the libraries folder in your arduino install? If done properly, the example projects should show up in the menu system with the rest of them.
Ridiculously cheap AVR devboards - Page 1
Forum section: electronics / general

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: February 08, 2012, 11:57:43 am
content: AT90USB162 board under a fiver (GB) :http://www.modtraders.co.uk/minimus-avr-usb-development-board.htmlSlightly bigger one- ATMEGA32U2http://www.modtraders.co.uk/minimus-32-avr-usb-development-board.html

author: ndictu
author_rank: Regular Contributor
timestamp: February 08, 2012, 01:27:09 pm
content: Slightly cheaper here:http://mrmodchips.co.uk/catalog/product_info.php?products_id=815{18}59But the postage is little higher, for me it's about 1gbp cheaper from mrmodchips.

author: bxs
author_rank: Regular Contributor
timestamp: February 08, 2012, 02:01:20 pm
content: The description says: "USB 2.0 High Speed"But the atmel chip is a Full Speed!!!

author: siliconmix
author_rank: Frequent Contributor
timestamp: February 08, 2012, 08:44:45 pm
content: that is silly money

author: metalphreak
author_rank: Frequent Contributor
timestamp: February 09, 2012, 06:00:56 am
content: These were made by Xecuter for the PS3 dongle modsThey made them as a "dev board" to avoid import/export bans and sony litigation.I guess now they have plenty of them leftover to shift.

author: siliconmix
author_rank: Frequent Contributor
timestamp: February 13, 2012, 11:04:37 am
content: just had a close up view on there site.don't like the soldering on them leds at the front eeewww

author: amyk
author_rank: Super Contributor
timestamp: February 13, 2012, 11:51:28 am
content: Quote from: siliconmix on February 13, 2012, 11:04:37 amSame with the clock crystal... were these handmade?

author: siliconmix
author_rank: Frequent Contributor
timestamp: February 13, 2012, 02:09:46 pm
content: looks that way only badly

author: electronicsbasecom
author_rank: Newbie
timestamp: February 20, 2012, 07:39:13 pm
content: I can recommendhttp://www.mikroe.com/dev boards.I have no payment from them so this is not paid commercial or something like thatI am simply using them for years now.but they are little bit more expensive. Still very cheap comparing to others.

author: metalphreak
author_rank: Frequent Contributor
timestamp: February 21, 2012, 10:35:20 am
content: I doubt they were handmade... Xecuter is one of the big players in the modchip industry and they ship hundreds of thousands of devices each year

author: EEVblog
author_rank: Unknown
timestamp: March 05, 2012, 08:16:13 am
content: Quote from: Dave.S on March 02, 2012, 06:16:47 pmWhy so many links to dealextreme?Dave.
Wolverine-MCU - Page 1
Forum section: electronics / general

author: Write_to_Smokegenerator
author_rank: Regular Contributor
timestamp: February 28, 2012, 02:57:03 pm
content: Hello I've checked my Mail Today and got that TI Newsletter.I've looked at the Data of the coming MCU.http://tinyurl.com/7b2qn2rI'm quite impressed of that features.What's your opinium of this?

author: Short Circuit
author_rank: Frequent Contributor
timestamp: February 28, 2012, 03:26:08 pm
content: Abuse of a great comic character,or an ill-tempered micro with memory losses.Either way, not too thrilled about it

author: TerminalJack505
author_rank: Super Contributor
timestamp: February 28, 2012, 04:08:28 pm
content: Considering how they are touting this as a super-duper energy efficient MCU shouldn't they name it after an animal with an efficient metabolism? Like the sloth, perhaps? They have nasty looking claws too. Of course they probably only use them to scratch themselves between naps, but...

author: sacherjj
author_rank: Frequent Contributor
timestamp: February 28, 2012, 05:55:17 pm
content: I wonder if they are going to have joint marketing with the new Red Dawn movie. If that ever comes out....

author: ejeffrey
author_rank: Super Contributor
timestamp: February 28, 2012, 09:22:36 pm
content: There is no need to use tinyurl for forum posts. If I can't see where the link goes I assume it is porn spam.

author: Hypernova
author_rank: Unknown
timestamp: February 29, 2012, 01:33:51 am
content: So does it regenerate if I put 3kV though it with only the programme memory loss?

author: MarkS
author_rank: Unknown
timestamp: February 29, 2012, 02:31:36 am
content: Quote from: ejeffrey on February 28, 2012, 09:22:36 pmGood point!http://www.ti.com/ww/en/mcu/wolverine/?DCMP=wolverine&HQS=wolverine