Search found 23 matches
- Wed Dec 02, 2020 12:21 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
Hey Steve I thought about using a boost convertor but decided not to because the benefits (longer use on one charge) do not outweigh the added costs and soldering work for my application (students with little soldering skills have to be able to assemble the device). Also, the pcb is getting quite fu...
- Mon Nov 30, 2020 9:40 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
Hey Steve Thx for the info, didn't knew about the 65% rule! I have a 3,7V (fully charged 4.2V) 570mAh battery and tested by running full load (roughly 500mA) until the µC started to brown-out (about 1 hour). Brown-out occurred when the battery voltage dropped to 3,52V. Could probably make it run +-2...
- Sun Nov 29, 2020 2:03 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
It's a battery rated at 570mAh and I can confirm it has about 500mAh left (rough calculation, but should be close to it). Not bad
- Sat Nov 28, 2020 1:22 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
Atm I'm testing with a battery from an old third party wireless PS3 controller. It was dead at first, but accepted charge from the circuit and charged fine. My circuit isn't drawing much current and only tested for short periods of time. I have no idea how much charge it's holding, but for testing p...
- Fri Nov 27, 2020 1:55 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
Hmm you're right actually, and with the help of the IntOscHelper it's easy to set the right frequency. I'll leave it using the internal osc, I don't need the high accuracy of an Xtal and this way I have 2 extra free pins. Thx for making me realize
Flowcode settings are ok, everything working now.
Flowcode settings are ok, everything working now.
- Fri Nov 27, 2020 1:07 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
In the bootloader I find OSCCONbits.IRCF = 7 and thus selecting the 16MHz internal clock. From there on the USB clock module gets the necessary 48MHz clock. But when running the user code, it resets back to using the 1MHz clock. It's a bummer that the IRCF bits are software controlled, for ease of u...
- Fri Nov 27, 2020 12:14 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
I configured the bootloader to use internal clock and was aiming to get 16MHz, instead it uses 1MHz. From datasheet: FREQUENCY SELECT BITS (IRCF) The HFINTOSC (16 MHz) outputs to a divide circuit that provides frequencies of 16 MHz to 31.25 kHz. These divide circuit frequencies, along with the 31.25...
- Fri Nov 27, 2020 11:08 am
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
I think I got it by making this .bat file for the compiler. @REM $(chip) "$(outdir)" "$(target)" @PUSHD %~2 "C:\Program Files\Microchip\xc8\v2.20\bin\xc8-cc.exe" -mcpu=%~1 "%~3.c" -w=359,1273,1388 -fshort-float -fshort-double -std=c90 -Os -mcodeoffset=0x2000 @POPD @IF %ERRORLEVEL% NEQ 0 GOTO Error @...
- Fri Nov 27, 2020 10:06 am
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
@Benj @Steve001 Thanks for the reply, I decided to go for the MCP73832T and it's working like a charm :) Only thing is, the STAT led stays on after charging is done. But that may be because I'm testing with Li-Ion battery's that are over 8yrs old. Back on-topic: I managed to get the system working w...
- Wed Nov 11, 2020 3:49 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
I'm very familiar with the ECIO's, but for my application they are way to expensive, too big and a bit overkill :) I decided to go for the PIC18F25K50 and Johnny's "USB PIC bootloader". A bit off-topic, but i'm currently figuring out how to implement a Li-ion battery + BMS. If someone has tips & tri...
- Tue Nov 03, 2020 1:03 am
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
Re: (re)programming a PIC over USB
Thanks for the quick reply, kersing! Using the parametric search (I feel silly for not knowing this, thx!) I found a chip that's perfect for my application (the PIC18F27J53). I found the Microchip bootloaders inside the "Microchip Libraries for Applications". There are USB bootloaders listed for a f...
- Mon Nov 02, 2020 7:23 pm
- Forum: Electronics products
- Topic: (re)programming a PIC over USB
- Replies: 22
- Views: 44450
(re)programming a PIC over USB
Hello As a starting electronics teacher i'm trying to develop some hardware on which my students can learn to program. The device i'm working on atm is almost finished, but I would really like to implement a USB port. That way the students can easily upload and test their code on the device without ...
- Mon Nov 25, 2019 1:07 pm
- Forum: General Programming
- Topic: FC8 7Segment (Quad) simulation error
- Replies: 0
- Views: 6369
FC8 7Segment (Quad) simulation error
Hello, Using FC8, the simulation of the "7Segment (Quad)" component is not working when using normal output icons (so not using the component macro). To simulate it, I have to use 4 "7Segment (Single) displays. Is this an error in the Quad component? See code in attachment (the 7Seg-displays are com...
- Mon May 06, 2019 10:29 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
Still having this problem.. Anybody had the time to look into it?
As far as I can see it's a bug in the flowcode component.
As far as I can see it's a bug in the flowcode component.
- Sat Apr 27, 2019 5:56 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
EDIT Ok, it seems that you can only enter position values in the "AutoMoveToPosition" macro that are multiples of the "SetAutoMoveSpeed" value. So: SetAutoMoveSpeed = 1 => AutoMoveToPosition range 0-255 SetAutoMoveSpeed = 2 => AutoMoveToPosition working values 0 - 2 - 4 - 6 - ... SetAutoMoveSpeed = ...
- Sat Apr 27, 2019 4:27 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
Included following code to make sure the HFINTOSC clock source is selected, but this made no difference. OSCCON1bits.NOSC = 0b000; OSCCON1bits.NDIV = 0b0000; I noticed the Servo Component Macro "SetPosition" is working fine, even tho the period of the PWM signal is also +-16ms. It is the "AutoMoveTo...
- Wed Apr 24, 2019 6:07 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
Thanks, I was not aware of that! The program seems to be compiling and working now, but the servo is not responding correctly. When I measure the PWM signal going to the servo motor, I see the period is +- 16 ms instead of the usual 20 ms. https://i.imgur.com/GJzXVCa.jpg I think there is something o...
- Mon Apr 22, 2019 1:33 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
My current version is V8.0.0.6, there are no updates available in the "check for updates" window.
So I don't know if I have your fix already, but the problem is still there.
So I don't know if I have your fix already, but the problem is still there.
- Fri Apr 19, 2019 1:54 am
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Re: Servo motor
Great, thanks!
I can't see any updates when checking. When will the update be available?
I can't see any updates when checking. When will the update be available?
- Wed Apr 17, 2019 8:25 pm
- Forum: Flowcode V8
- Topic: Servo motor
- Replies: 10
- Views: 5583
Servo motor
Hello, I'm using the PIC16f18325, but I think there is something wrong with the "servo controller" component. As soon as I try to compilea program using the component, I get following error log. Test 16f18325 enkel servo.c: FCD_0dd21_Servo_Controller1__Initialise() 1127: PIE1bits.CCP1IE = 1; ^ (255)...
- Tue Apr 02, 2019 4:42 pm
- Forum: Bug Reports
- Topic: Stepper motor component bug
- Replies: 1
- Views: 1829
Stepper motor component bug
The "IncrementStep" component macro from the "stepper_generic" component gives the wrong output sequence. Stepper is "stuttering" and skipping steps. The "DecrementStep" works perfectly.
Tested on target ECIO40P.
Tested on target ECIO40P.
- Mon Jun 11, 2018 9:38 am
- Forum: E-blocks
- Topic: Could not ID the onboard chip HP6339
- Replies: 1
- Views: 6503
Re: Could not ID the onboard chip HP6339
Thanks for your comment! I'll check all of this tonight. Programmer is +- 5 years old and feeded through usb only.
- Sun Jun 10, 2018 1:41 pm
- Forum: E-blocks
- Topic: Could not ID the onboard chip HP6339
- Replies: 1
- Views: 6503
Could not ID the onboard chip HP6339
Hello, I'm using the Matrix HP6339 PICmicro programmer (basically just an e-block in a case) to program an PIC16F88. I've done this countless times, but recently it started going wrong. When I want to load the already programmed pic again with an updatet program, PPP v3 gives me the "Could not ID th...