hybridfree/eevblog-posts huggingface dataset:
Cheap parallel PSRAM - Page 1
Forum section: electronics / general

author: soFPG
author_rank: Frequent Contributor
timestamp: October 28, 2019, 07:55:15 pm
content: I need 16Mbit parallel (P)SRAM, the cheapest one I could find from mouser are close to 3$ which is quite expensive (I think) - are you aware of any cheaper chips with 1MB x 16 or 2MB x 8 or higher (maybe from China)?

author: EverydayMuffin
author_rank: Regular Contributor
timestamp: October 28, 2019, 10:08:16 pm
content: GOWIN LittleBee FPGAs have hard Cortex-M3 and are available with 32Mb of PSRAM. They cost about $2.00.https://gowinsemi.com/en/product/detail/2/

author: PCB.Wiz
author_rank: Super Contributor
timestamp: October 29, 2019, 01:57:21 am
content: Quote from: EverydayMuffin on October 28, 2019, 10:08:16 pmWhere can someone find Prices and English data ?

author: soFPG
author_rank: Frequent Contributor
timestamp: October 29, 2019, 06:50:53 am
content: QuoteBut I don't need the FPGA around itJust parallel PSRAM.

author: jhpadjustable
author_rank: Frequent Contributor
timestamp: October 29, 2019, 07:15:55 am
content: PSRAM isn't exactly a commodity item. Repair shops and hobbyists are the only ones left who really want it. Don't expect anywhere near the same price per bit as DDR3L/DDR4 that's produced by the tonne.

author: soFPG
author_rank: Frequent Contributor
timestamp: October 29, 2019, 01:18:36 pm
content: QuoteI just found a module on Mouser which was released just 1 year ago, so pretty recent. I don't think new modules would be released if there is no market for them. But as I said, it is still around 3$.Sometimes the chinese websites have old end of live products for cheap - but of course you have to know the name of that Module before you can find it. So I hoped someone has a "secret" part name

author: EverydayMuffin
author_rank: Regular Contributor
timestamp: October 29, 2019, 01:45:08 pm
content: Quote from: PCB.Wiz on October 29, 2019, 01:57:21 amI mentioned this below in the FPGA Forum, worth trying the UK/Ireland distributor for information in English. GOWIN's Europeans Sales Office is in the UK.Quote from: EverydayMuffin on October 26, 2019, 04:59:58 pm
Need help figuring out a PIC I2C function - Page 1
Forum section: electronics / general

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: October 21, 2019, 10:03:02 am
content: Within the I2C simple appliance there is a function to write a byte out to a target device as shown below. What I'm having trouble with is the meaning of the second parameter "register." Does this refer to a register in the PIC or the target device and if in the PIC why a register followed by a "data" parameter. I am trying to write data to a display and to my knowledge it does not require an register parameter for data sent. If register refers to the Slave device can a dummy argument be inserted?i2c_write1ByteRegister(i2c_address_t address, uint8_t reg, uint8_t data)Parameters:address: Type: i2c_address_t; The slave addressreg: Type: uint8_t; The register address to be writtendata: Type: uint8_t; The data to be written

author: CJay
author_rank: Super Contributor
timestamp: October 21, 2019, 10:11:55 am
content: It refers to the slave address, every I2C device has an address and if you fail to provide it then the device will completely ignore your write because it will assume it's meant for some other device on the bus.

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: October 21, 2019, 10:19:09 am
content: Oops, my mistake. I was referring to the register parameter. I get the address part, just not the register parameter. Original post edited.

author: ggchab
author_rank: Frequent Contributor
timestamp: October 21, 2019, 11:29:38 am
content: It depends on the library and the slave. "reg" may refer to a location on the slave were "data" has to be written. "reg" and "data" may simply be sent one after the other on the I2C bus !

author: kamtar
author_rank: Regular Contributor
timestamp: October 21, 2019, 02:49:52 pm
content: a register is register/memory address in your slave device and data is what gets written there.

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: October 21, 2019, 04:54:47 pm
content: Quote from: kamtar on October 21, 2019, 02:49:52 pmSo what happens to the register address data when the slave device does not expect it? Is it treated as just another data byte? I'm sending data to a LCD display with I2C adaptor. I've done this with Teensy controllers and don't see that I ever needed a register parameter. I suppose I could use 'i2c_writeNBytes(i2c_address_t address, void* data, size_t len)' and just set len=1.

author: ggchab
author_rank: Frequent Contributor
timestamp: October 21, 2019, 07:30:58 pm
content: 'i2c_writeNBytes(i2c_address_t address, void* data, size_t len)' is probably a better function in your case.And if you write to an LCD, I guess you'll have to send more than one byte !
OV5640 and STM32H7 - Page 1
Forum section: electronics / general

author: Mitalius
author_rank: Contributor
timestamp: August 01, 2019, 11:21:54 am
content: I am trying to connect the OV5640 (LI-OV5640-PAR-AF-PR module) to the STM32H7.I chose RGB565.I checked, DMA2D normally converts RGB565 to RGB888, there is no problem with that.But the fact is that the camera behaves strangely, in the photo you can see the red color.After I brought out the test pattern, it looked fine, but the black color was a little reddish.After I set up a test pattern to show a black screen, it turned out with a touch of red.When I looked with an oscilloscope, I saw that there is always data on the D5 line.When I looked at the data in the debug, I found that the array is filled with one value: 0b0100000001100000Which means:R5: 01000G6: 000011B5: 00000This is strange, I can’t understand where another bit came from if there is data only on D5.I checked 2 different camera modules, the result is the same.I also checked different register tables from the github, I made many attempts, but the result is always the same, I see a red color.I will be grateful for any help.

author: Mitalius
author_rank: Contributor
timestamp: October 22, 2019, 02:20:04 pm
content: I bought new camera modules but got the same problem.I also checked OV2640 and it works.I can’t understand what I’m doing wrong, I’ve already tried many drivers, but everyone gives such a result.I still need help
18F4580 is it compatible with 18F458? - Page 1
Forum section: electronics / general

author: Chriss
author_rank: Frequent Contributor
timestamp: October 16, 2019, 08:34:37 pm
content: Hi!I have to change a bad PIC 18F458 but the fastest delivery time I can get a PIC 18F4580.I have to program a firmware what I actually have wich is for the old PIC 18F458.I checked in datasheet and compared these two PIC and I can see they should be compatible,but I have only the compiled hex file what I have to program into the new PIC.Could this work if I interchange the old burned PIC 18F458 with the new type PIC 18F4580 and upload the firmware what I havefrom the 18F458?Does somebody have any experience with this kind of mixing?Thank you very much.My best regards.

author: 1Ghz
author_rank: Unknown
timestamp: October 16, 2019, 08:46:58 pm
content: PIC18F458 to PIC18F4580 Migration Documenthttp://ww1.microchip.com/downloads/en/DeviceDoc/39661a.pdf

author: Ian.M
author_rank: Super Contributor
timestamp: October 16, 2019, 09:16:31 pm
content: TLDR:Pin compatible - YesBinary code compatible - No, for anything much more complex than 'blink a LED', even if you patch the CONFIG, due to the many SFR and hardware peripheral module differences.OTOH if you've got full sourcecode + the corrct compiler to rebuild it, you are in with a chance of porting it sucessfully if you carefully work through the code, referring to the migration document 1GHz linked, and the two device datasheets, and all the PIC 18F4580 errata, adapting the code as required.

author: jackthomson41
author_rank: Regular Contributor
timestamp: October 19, 2019, 02:11:12 pm
content: It would be wise to use PIC18F458 but if you have to replace it then you need to change the configuration bits of your code i.e. change microcontroller name in your compiler and upload the hex file in your newmicrocontrollersi.e. PIC 18F4580.But if you just have the hex file and not the code then it's impossible to replace.

author: Chriss
author_rank: Frequent Contributor
timestamp: October 19, 2019, 07:17:17 pm
content: Thank you guys, you helped me really to make a decision.Thanks.My best regards.
Board bring up with ATSAMD20E15 - Page 1
Forum section: electronics / general

author: TonyS
author_rank: Newbie
timestamp: October 18, 2019, 01:58:56 pm
content: Hi,I am trying to bring up a Board using the ATSAMD20E15 But, I am getting an error from the programmer:Error could not activate interface. But found a DAP with ID 0xbc11411I think this maybe due to fuse setting but I can find no guidance documentation on fuse settings. Can anyonepoint me in the right direction

author: TonyS
author_rank: Newbie
timestamp: October 18, 2019, 03:59:00 pm
content: Update: When using the "Device Programming" tab/window I can uncheck the erase flash before programming and verify after programming, then I am able to program successfully and verify. It still won't program from the "Debug" button. I get the follow errorwhen I do:Error could not activate interface. But found a DAP with ID 0xbc11411What does that mean?

author: ataradov
author_rank: Super Contributor
timestamp: October 18, 2019, 04:59:35 pm
content: This looks like you don't have a reset line connected to the programmer or it can't drive it properly and your firmware goes into a sleep mode.DAP is a Debug Access Port, which is always active as long as there is a debugger, but debugger can't get into the rest of the system, since it is not awake.

author: TonyS
author_rank: Newbie
timestamp: October 18, 2019, 05:43:59 pm
content: Thanks. I think this was the problem and a bug in studio. Solved by updating. Thanks again.
Arduino and OV7670 Camera - Page 1
Forum section: electronics / general

author: enginar
author_rank: Newbie
timestamp: October 17, 2019, 10:53:43 am
content: How can I get 30 fps from ov7670(without fifo) with arduino uno? Is it possible ?Or should I use a different microcontroller to get 30fps ? e.g stm32 ,raspberryi pi.Thanks in advance.

author: wraper
author_rank: Unknown
timestamp: October 17, 2019, 11:37:11 am
content: You won't get any video from it, not to say 30 FPS. You need MCU with dedicated camera interface.

author: enginar
author_rank: Newbie
timestamp: October 17, 2019, 12:06:00 pm
content: What is camera interface ? Like spi, ethernet, usb ? I tried with arduino uno but I can get 1 image in 3 seconds via serial usb. Is this normal ?

author: wraper
author_rank: Unknown
timestamp: October 17, 2019, 12:38:08 pm
content: Quote from: enginar on October 17, 2019, 12:06:00 pmIt's normal. By camera interface I meant that there are specialized camera interfaces and bitbanging them is slow. I did not check that this camera has parallel data output. By camera interface I also implied that MCU will certainly have DMA which is required for things to be done fast. You need ARM Cortex M3 MCU as minimum.

author: Kasper
author_rank: Frequent Contributor
timestamp: October 18, 2019, 05:35:15 pm
content: Arducam has a lot of camera modules that are fairly easy to work with. Not sure if any meet your specs but could be worth a look.
STM32 Blue Pill: Chip Select (CS / NSS) Pins  - Page 1
Forum section: electronics / general

author: ipek.grgc
author_rank: Contributor
timestamp: October 15, 2019, 09:34:30 am
content: Hello,I am trying to figure out how many sensors can i connect to blue pill trough SPI. I have two sensors, one needs 3 CS connected, the other needs 1 CS to be connected.There are two SPIs on blue pill, each have their own CS / NSS pins. In this pin-out diagram i attached, there are only three NSS pins: PA15, PA4 and PB12. Can i use other pins as chip select? I know that any digital pin will work on Arduino or RPi as chip select, but since Blue Pills pin-out diagram indicated specific ones as NSS, i am confused about how many digital pins there are that can be used as chip select.

author: emece67
author_rank: Frequent Contributor
timestamp: October 15, 2019, 09:46:58 am
content: .

author: thm_w
author_rank: Super Contributor
timestamp: October 16, 2019, 12:41:38 am
content: As emece67 says, basically any GPIO pin can be used as CS if it is controlled manually.

author: DBecker
author_rank: Frequent Contributor
timestamp: October 16, 2019, 03:42:27 pm
content: Adding to the detail: the designated NSS is really the slave chip select. It is primarily useful when the SPI channel is used as a slave device, not as a SPI master. Search the docs for "NSS hardware mode".
STM8: PWM controller for peristaltic pump (or whatever you wish) - Page 1
Forum section: electronics / general

author: rhodges
author_rank: Frequent Contributor
timestamp: July 14, 2019, 05:46:22 pm
content: I have a decent start for a PWM controller for STM8, specifically STM8S103. This is for a peristaltic pump that will feed oil for burning at a controlled rate.The source code is on Github and you can view it here:https://github.com/unfrozen/pwm_pumpI believe this is good enough so that I can start working on the physical side (oil plumbing and burning.)Quote

author: rhodges
author_rank: Frequent Contributor
timestamp: October 16, 2019, 06:36:47 pm
content: Bump. I have added features and put pictures of a working prototype in the project wiki:https://github.com/unfrozen/pwm_pump/wikiAdding to "RUN" and "OFF" is a 60 second run mode for measuring flow rate at various PWM rates.There is a cycle feature with on and off times from 0.1 to 9.9 seconds (for flow rates too low for PWM.)
MPLAB MCC and the PIC 12F683 - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 29, 2019, 05:20:50 pm
content: I've just installed MCC (code configurator) but is doesn't have the library for the 12F683.I've looked on the Microchip website and (I presume I have the latest version) there are loads of archived libraries. How do I know what library to download? Can I install more than one version?Cheers.
OV7620 Camara Performance na Interface - Page 1
Forum section: electronics / general

author: jtronix
author_rank: Regular Contributor
timestamp: October 14, 2019, 10:30:35 am
content: Hi,I would like to interface camera with iMXRT1021 microcontroller from NXP to recognize a face. I got low costOV7620camera which can be interface with iMXRT1021. As i have not used this module so have few questions1) How was the performance of camera in day?2) How was the performance of camera in night?3) What about the brightness in night?4) How was the overall performance?5) Does it suitable for face recognize application?

author: jtronix
author_rank: Regular Contributor
timestamp: October 16, 2019, 03:39:58 am
content: Anyone there who can share their experience?
uVision5 Silabs8051 and flashy via USB with EC6 - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: October 15, 2019, 07:18:06 am
content: I lost some time, but finally, I found an easy way to flash a silabs 8051 inside keil, without using simplicity.Just type this on options for target / user / After build rebuildC:\SiLabs\MCU\Utilities\FLASH Programming\Static Programmers\Command-Line\FLASHUtilCL downloadusb -RE #H "" 1 1I'm posting because this is not an easy thing to find on google, just parts not the easy thing
Disconnecting power jack and ESD - Page 1
Forum section: electronics / general

author: lawrence11
author_rank: Frequent Contributor
timestamp: October 14, 2019, 04:52:51 pm
content: Am I just paranoid?Or should I add a zener clamp between Jack+5v and GND?

author: Ian.M
author_rank: Super Contributor
timestamp: October 14, 2019, 05:14:49 pm
content: That won't happen. The input capacitance prevents a significant voltage rise on disconnect., or even on HBM ESD discharge to the jack center pin.However when you reconnect the jack, if the supply voltage at the moment of connection exceeds half of the LDO's max input voltage rating, all hell can break loose. The problem is the transient due to the supply lead inductance ringing with the input capacitance, which if undamped can reach double what the supply voltage was at the moment of connection. If you use ceramic input capacitor(s) its compounded by their reduction of capacitance with increasing voltage. Pop goes the LDO and everything on its output rail that can't tolerate the full input voltage.Therefore Zener clamping (with an upstream fuse or polyfuse) is *STRONGLY* recommended if the nominal supply voltage exceeds around 40% of the LDO's max rating.Alternatively, use a regular electrolytic of 10x the ceramic input capacitor value in parallel with it so its ESR provides damping, or if you need to eliminate 'wet' caps, use an extra ceramic of 10x the value with a 1R resistor in series to provide a similar ESR.

author: lawrence11
author_rank: Frequent Contributor
timestamp: October 14, 2019, 05:18:37 pm
content: That seems like a pretty random situation, but it could happen. You just never know between debouncing and just bad handling.So it would be wise to put a through hole zener on the bottom side of the pcb right underneath the plastic jack?From jack+5 to GND?The flat like jack connector has a half moon of space, for the through hole lead to be inserted.

author: ejeffrey
author_rank: Super Contributor
timestamp: October 14, 2019, 09:53:05 pm
content: Its not that weird or unusual and it doesn't have anything to do with debouncing or bad handling. A lot of LDOs have very low absolute maximums. For instance, I have used a 3.3 V LDO with an absolute maximum of 6V. If you hotplug that to a 5 V supply (like a USB port) with no clamping or damping you are going to easily exceed the max rating. Even with a minimum supply voltage like 3.6 that can go over the 6V rating.

author: pigrew
author_rank: Frequent Contributor
timestamp: October 15, 2019, 02:56:09 am
content: Thanks for the reminder of the LC ringing issue. I need to test for it in future designs I do...I often add a soft-start/OVP IC to the input, which solves the issue by limiting the capacitance presented to the line when first plugged in.I really do like ceramics, but this is a good reason to add tantalum or electrolytic capacitors.I also founda nice website discussing the issue.
Kinetis MK66, how overclock to 240Mhz - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: October 12, 2019, 02:06:43 am
content: Hi.I want to apply overclock to a Kinetis MK66, to run at 240Mhz, I know it is possible because with the Teensy 3.6 I can apply an overclock at 192, 216 and 240Mhz, using the same microcontroller.But I prefer to work with MCUXpresso, the problem is that I don't know how to configure it here, I have tried several combinations of the PLL but it always gives me error. The only sure is that the maximum frequency of the VCO is 360Mhz.Regards

author: RES
author_rank: Regular Contributor
timestamp: October 12, 2019, 11:13:43 am
content: Perhaps this is how?Quotehttps://forum.pjrc.com/threads/53068-SPI-transfer()-send-multiple-bytes-array-(teensy-3-2)

author: luiHS
author_rank: Frequent Contributor
timestamp: October 12, 2019, 11:51:06 am
content: Quote from: RES on October 12, 2019, 11:13:43 amIts for Teensy using Arduino IDE, but I need to do with MCUXpresso. The libraries, and all the configuration files are totally different.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 13, 2019, 03:32:35 pm
content: You probably noticed that it's spec'ed only up to 180MHz, so above that, I guess NXP doesn't guarantee anything. If that's just for a personal project, why not, but otherwise, not sure this is such a good idea.
STM32Cube IDE, how to correctly create .c and .h files? - Page 1
Forum section: electronics / general

author: rvalente
author_rank: Frequent Contributor
timestamp: October 12, 2019, 02:12:03 pm
content: Hello Friends,I'm getting started with the Cube IDE. Just create a basic project with cube mx and I wonder, what is the most correct way to create the .c+.h pair of files for my custom application?Considering future changes and code generation on MX, them:Do they must be in a user folder? Should I create a folder on IDE? Will this a be a logic folder or a true folder in the project source?Is there a best method for not screwing stuff in the future?Attached my project tree:

author: mjs
author_rank: Regular Contributor
timestamp: October 12, 2019, 05:14:02 pm
content: I've written my own application under src/ and inc/, added them to build and then added all the calls to application code between USER CODE BEGIN / END.This seems to be pretty solid even when doing changes in CubeMX and rebuilding the project files.

author: rvalente
author_rank: Frequent Contributor
timestamp: October 12, 2019, 06:56:28 pm
content: I will try this way, tks!
Communication from raspberry pi zero w to raspberryi pi zero w - Page 1
Forum section: electronics / general

author: enginar
author_rank: Newbie
timestamp: October 17, 2019, 12:11:53 pm
content: What is the fastest communication between 2 raspberry pis zero wireless? I want to get 15 MegaByte data per second, is it possible?Thanks in advance.

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 17, 2019, 04:33:25 pm
content: I doubt it.

author: jhpadjustable
author_rank: Frequent Contributor
timestamp: October 17, 2019, 07:07:09 pm
content: The best bet would be the USB OTG port and gadget driver, but still a big maybe.

author: MosherIV
author_rank: Super Contributor
timestamp: October 17, 2019, 07:43:49 pm
content: Try the ethernet port. It should be capable of Gigbit transfer speeds.

author: jhpadjustable
author_rank: Frequent Contributor
timestamp: October 17, 2019, 11:59:57 pm
content: Quote from: MosherIV on October 17, 2019, 07:43:49 pmExcellent idea! Where do I plug it in?

author: Ian.M
author_rank: Super Contributor
timestamp: October 18, 2019, 12:18:58 am
content: Seehttps://climbers.net/sbc/clusterhat-review-raspberry-pi-zero/A Pi Zero in network gadget mode to Pi 3 as host, via the hub on the cluster hat board benchmarked at 82.1 Mbits/s. With one Pi Zero as OTG host and another as network gadget, I'd expect a bit less than that, as the Pi Zeros (and Zero Ws) are rated for 1 GHz clock speed, and a Pi 3B for 1.2 GHz, so depending on where the bottleneck is, it could be up to 17% slower.Therefore it looks like you are S.O.L. with a max transfer speed of only 2/3 of what you want.
A visual example of floating point numbers and their limitations - Page 1
Forum section: electronics / general

author: T3sl4co1l
author_rank: Super Contributor
timestamp: October 10, 2019, 11:01:35 am
content: A practical example, too -- floats are used in many games, this one for example!The abstract lesson is: floating point math is unstable, in sometimes unexpected ways. You can't increment a float, not for very long (some millions of times). While you can write an expression in any equivalent mathematical form, some forms are better-behaved than others when it comes to hard numbers.Tim
Bricked SAMD21 (not detected by Atmel Ice) - Page 1
Forum section: electronics / general

author: 3dgeo
author_rank: Frequent Contributor
timestamp: October 06, 2019, 01:33:58 pm
content: Hi,I made custom PCB design that uses SAMD21G18A, first PCB I soldered SAMD21 and most other components of my circuit seems to work. But after having some IO issues I made another PCB with minimum components just to run SAMD21 chip itself (see image below). I burned Adafruit bootloader using Atmel ICE, but chip somehow got bricked, Atmel ICE no longer detects it. I made another PCB, same, tho on 3rd one I think I even haven't chance to burn bootloader.I know connections are fine and Atmel Ice is working, I still can read my first BCB. I was wondering what could cause this? Are these chips are that sensitive? I don't believe I fried them while soldering, especially when I burned bootloader to 2nd PCB. Most likely I will abandon SAMD21 for other reasons, but still, I need to know what's the problem.EDIT: Solved, problem was that VDDANA was not connected to 3.3v

author: ataradov
author_rank: Super Contributor
timestamp: October 06, 2019, 05:30:45 pm
content: What does AS error message say exactly?Try with this toolhttps://github.com/ataradov/edbgand see what the output is.You need to at least short L61. You can't leave VDDANA unpowered at all.No, those chips are not sensitive at all. I work with them all day long without any sort of care, and have note killed one.

author: 3dgeo
author_rank: Frequent Contributor
timestamp: October 06, 2019, 06:01:17 pm
content: You have tools for everything, aren't you?Can your tool fix this error?Quote from: ataradov on October 06, 2019, 05:30:45 pmYah, I looked to other designs and they connect 3.3v directly to VDDANA, but I ignored that cos my first board works without it, but I can bet that's my problem, iron heating up, will know in a sec... It might be the answer to my Reset problem as well.

author: ataradov
author_rank: Super Contributor
timestamp: October 06, 2019, 06:03:49 pm
content: Is this with VDDANA connected? Because if not, then there is nothing to fix, the chip is not supposed to work with this voltage missing.The reason I'm suggesting my tool is that it may produce a better error message.

author: 3dgeo
author_rank: Frequent Contributor
timestamp: October 06, 2019, 06:16:40 pm
content: Yep, now it works, idiot me...Tho Reset issues still there with 1st board.
ESP32 - MAX6675 Thermocouple Tests and Experiments - Page 1
Forum section: electronics / general

author: jcrubin
author_rank: Frequent Contributor
timestamp: October 07, 2019, 12:07:19 pm
content: Today we do some testing on the MAX6675 that I'd picked up on Banggood. I need a few of these for several projects, though I haven't settled on which type or what yet, I figured I would capture some tests in a video today and go way overboard on the unnecessaries. Everything I do is with the ESP32; not actually owning an Arduino, my assumption is that this will work just the same, given the simplicity of todays tasks.The wiring is straight forward, I went with the 3.3 volt but its good to know that 5v is also a possibility straight off a power supply. I was surprised to see that the Adafruit library wont work for the ESP32, and I went with the one from Yurii Salimov, it worked just fine, designed exactly around the chip specification.Apparently it would seem that Red goes to + and Blue to -. This is not immediately evident. Testing with a supplied example from the library showed sadly that my flir camera may be off a few degrees, I should check that out. My other thermometer confirms that the probe is off just a few degrees.The first task was to assemble a program using PWM to use the blue LED on the ESP32 as a temperature indicator. I did this without map just to demonstrate whats going on. It works but not smooth because the range I was working in did not provide for wonderful resolution, also there is no secondary sensor to hold the base temperature value, so this method is flawed.Instead I employed a PCM9685 driver board and a servo, mapping 0 to 100 degrees to the full throw of the servo. In this manner i could mount a cardboard display behind the servo and mark every 5 degrees celsius. With this, a Rube Goldberg Analogue thermometer is produced. It did work surprisingly well though, and demonstrates that this has great potential for automatic regulation at the output, given the input with little effort Consider that servo could be adjusting the gas at the lighter to maintain an ideal pre-set temperature.Well, thats enough fun for one afternoon, more ESP32 stuff in the future.
How eMMC works? - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: October 04, 2019, 03:23:04 pm
content: Hello All,I want to know that How eMMC memory works...I mean that how read/write happens and what its limitations...I have been searching for the related documents but I got nothing...All I got is the overview about eMMC memory...It would be great if anyone point me to the right documents to learn...Please suggestThanksMuthu

author: amyk
author_rank: Super Contributor
timestamp: October 04, 2019, 07:43:24 pm
content: https://www.jedec.org/standards-documents/technology-focus-areas/flash-memory-ssds-ufs-emmc/e-mmc
MPLAB X Project Properties - Page 1
Forum section: electronics / general

author: L_Euler
author_rank: Regular Contributor
timestamp: October 03, 2019, 12:10:00 am
content: In MPLAB X under the General tab in Project Properties there is an option to change encoding with dozens of options. Why and when would I make a selection in that field. The user manual was not much help.

author: mpgmike
author_rank: Newbie
timestamp: October 07, 2019, 07:54:44 am
content: That has to do with how the compiler deals with the structure of your code. When you choose your compiler (XC8 v2.10 for example), the appropriate ISO- format is assigned automatically. With the release of MPLABX v5.0 the C based XCx went from C89 to C99 format. You can choose C90 to use older code (or stay with familiar formatting style), which then will change the ISO- format. Hope this helps.
"Best" ESP32 dev board? - Page 1
Forum section: electronics / general

author: richardman
author_rank: Frequent Contributor
timestamp: September 27, 2019, 08:39:41 am
content: What is the best ESP32 dev board? I am mainly interested in developing and debugging code for the core Xtensa CPU. Indeed, if there is an Xtensa dev kit that is better, I would be interested in that as well.So: ease of downloading code and ease of debugging (GDB/JTAG) are the most important attributes.FYI - my plan is to contribute to the open source Clang/LLVM to Xtensa port. Yes, GCC works and works well, but Clang/LLVM have some important features.Thanks

author: ogden
author_rank: Super Contributor
timestamp: September 27, 2019, 08:54:20 am
content: What is best for one, may not be such for others. Just two cents about very nice (IMHO) board I recently discovered (search terms): "TTGO T-Display ESP32 WiFi Module"

author: ebclr
author_rank: Super Contributor
timestamp: September 27, 2019, 08:25:30 pm
content: I guess this is what you needhttps://mouser.com/ProductDetail/Espressif-Systems/ESP-WROVER-KIT-VB?qs=sGAEpiMZZMuJ3l9lTgMBp1ZUJQFPkBG2bqPruq%252BVTL3KaeUUn0LZ3A%3D%3D
MPLAB Snap In-Circuit Debugger $7.47 thru Sept. 30, 2019 ... - Page 1
Forum section: electronics / general

author: gbrettell
author_rank: Contributor
timestamp: September 26, 2019, 09:47:46 pm
content: MicroChipDirect Store has the MPLAB Snap on sale ...50% off code thru Sept. 30, 2019:TP1973Then Free Shipping Code:MCHPFREETotal: $7.47 ... can't beat that price!

author: wilfred
author_rank: Super Contributor
timestamp: September 27, 2019, 12:24:02 am
content: I posted this earlier but it might be useful to someone here as well.There is a list of devices supported by the SNAP programmer herehttp://ww1.microchip.com/downloads/en/DeviceDoc/Device_Support.pdfIt doesn't support older devices and I don't know exactly what the yellow boxes mean. It may be "we can't see why it wouldn't work but since we haven't tried we will hedge our bets". Or it may be it mostly works but one or a few functions don't work. It does seem to do a few ARM and AVR devices too.I ordered one but when I checked yesterday it was in Honolulu. I couldn't resist the price.

author: westfw
author_rank: Super Contributor
timestamp: September 27, 2019, 08:52:53 am
content: I've got two now. they're a bit ... flakey for AVR programming/debugging, but they're getting better, so I have pretty high hopes.They're not expected to ever support any of the chips/situations that require high-voltage signals (UPDI or TPI AVRs with the reset or UPDI pin set to be GPIO, HV Serial Programming on older AVRs, older PICs with LVP disabled, etc...)
The Designer’s Guide to the Cortex-M Processor Family 2ed - Page 1
Forum section: electronics / general

author: amiq
author_rank: Regular Contributor
timestamp: September 25, 2019, 10:31:21 pm
content: Does anyone have this bookhttps://www.amazon.co.uk/Designers-Guide-Cortex-M-Processor-Family/dp/0081006292by Trevor Martin of Hitex.There is supposed to be a download of a Hitex Utilities Pack available from the publishers sitehttp://booksite.elsevier.com/9780081006290but it doesn't exist in the downloadable zipfile. This pack is needed by the examples in the last couple of chapters of the book.Does anyone have a copy?Edit:Fair play to the authour, he sent me a link to the missing pack when I contacted him. Hopefully he'll also update the zipfile on the elsevier companion webpage.

author: I wanted a rude username
author_rank: Frequent Contributor
timestamp: September 26, 2019, 10:42:32 am
content: Isn't that whatExamples/12.3 Component/Pack/CMSIS_Pack_Example.zipis for? The contents of that ZIP file are identical to those illustrated in Figure 12.25 ofthe book.

author: amiq
author_rank: Regular Contributor
timestamp: September 26, 2019, 06:43:09 pm
content: No, that's not it. The pack is used in examples 10.5, 11.1 (possibly elsewhere).
STM32MP Series - Page 1
Forum section: electronics / general

author: 1uk3
author_rank: Contributor
timestamp: February 23, 2019, 04:28:45 pm
content: HiI was really suprised that i couldn't find a thread about the new Cortex A7+M4 series. I somehow expected a 100 page in depth analysisExample datasheet of the dual core version STM32MP153Ahttps://www.st.com/resource/en/datasheet/stm32mp153a.pdfMost of my products contain either F0, F4, F7 or H7 so I'm really exited that ST now also covers all my needs: gigabit ethernet(AAA and AAC models) and a DDR memory.My only concern is the bus matrix. Do you think the AXIM bus can handle a DCMI camera over the bus bridge to DDR memory and memory to GMAC at full rate + all the traffic caused by the A7 cores?What do you think about the price of 5-10$ @ 10k? Feels rather cheapGreetingsLukas

author: robint91
author_rank: Contributor
timestamp: February 23, 2019, 05:05:07 pm
content: I'm also looking to this chip. With that price point they have something nice in there hands. Even with that GPU.That AXIM bus does about 2 GByte/s. I don't think that would a big problem.I have asked my local distributor for some prices and a discovery kit, hopefully I will get that maybe next week.

author: 1uk3
author_rank: Contributor
timestamp: February 23, 2019, 05:18:31 pm
content: I think they are not available yet.The discovery kit seems nicehttps://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-tools/stm32-discovery-kits/stm32mp157a-dk1.htmlDCMI sits on a different bus(MLAHB) and there is an "async" bridge between them. Do you know how the asynchronous interface affects throughput?

author: drojf
author_rank: Newbie
timestamp: February 28, 2019, 12:51:36 am
content: Octavo also announced a SiP using the STM32MP1:https://octavosystems.com/octavo_products/osd32mp15x/It integrates everything except flash memory that you need to run the chip. You might remember them as they make the SiP which goes in thePocketBeagle

author: pymenow
author_rank: Newbie
timestamp: October 03, 2019, 09:24:07 am
content: Looking at using the STM32MPX for a HW design, how is I2C buses partitioned between the Cortex M4 Microcontroller vs the A7 MicroProcessor? Can either processor access devices on these I2C buses assuming both have the required drivers enabled.
ESP32 IR remote control transmit library Arudino? - Page 1
Forum section: electronics / general

author: Daque
author_rank: Contributor
timestamp: September 20, 2019, 06:19:29 pm
content: All I seem to find is receiving decode. I need to decode an AC remote and clone the temp up and down button codes so I can remote control it. Anyone got a link?

author: sokoloff
author_rank: Super Contributor
timestamp: September 20, 2019, 06:21:43 pm
content: Try this:https://medium.com/@reefwing/espressif-esp32-tutorial-ir-remote-control-using-microsoft-azure-ed768a5cea4drelated to this:Seems likely to be squarely up your problem's alley.

author: Daque
author_rank: Contributor
timestamp: September 21, 2019, 03:38:56 am
content: Thank you.
Calculating CRC in the automotive induatry, but how? - Page 1
Forum section: electronics / general

author: Chriss
author_rank: Frequent Contributor
timestamp: September 21, 2019, 11:51:42 pm
content: Hi!Today a was talking with a friend abkut electronic, software etc.He is in the field of car electronic repairing and he asked me an interesting question.He asked me to explain how som ecu in the car calc the crc for the eep of the ecu.He also told me does sometime he have to change some info in the eep dump a d he have a crc error after the changing.He will share some examples cos I really curious how that looks like and how they do the math.If somebody here have some algo or explanation how that is working on the auto industry, I would like to read about.Thanks for any info.

author: oPossum
author_rank: Super Contributor
timestamp: September 22, 2019, 12:05:12 am
content: CRC explained in detail...Short answer is that you need to know the polynomial, initial value, and bit order to be able to calculate the CRC. The actual math is simple.Code:void crc_init(void){crc = 0xFFFF;}void crc_update(uint16_t *d, unsigned len){while (len--) {crc ^= *d++;unsigned n = 16;do crc = (crc & 0x8000) ? (crc << 1) ^ 0x1021 : crc << 1; while (--n);}}

author: ataradov
author_rank: Super Contributor
timestamp: September 22, 2019, 12:06:37 am
content: There is no universal "auto industry" CRC, if that's what you are asking. So it all happens on a case by case basis.
PIC32 DMA ADC. Single channel to transfer two ADC buffer - Page 1
Forum section: electronics / general

author: satyamfifa
author_rank: Regular Contributor
timestamp: September 19, 2019, 12:14:50 am
content: Hey All,I am using PIC32MX460F512L, I am using ADC in ALT mode to sample two ADC pins and 1 interrupts for 2 conversions. I am thinking of copying the results of 2 conversion into RAM using DMA. Therefore I was wondering if it possible to use a single DMA channel to copy the result of ADC1BUF0 and AD1BUF1 without CPU intervention. I want to know if it is possible and how.Thanks in advance.Regards,Sparsh

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: September 19, 2019, 02:53:04 am
content: I found the time taken between the samples gave me ample time to put the data into buffers.I found using the DMA took longer.

author: mikerj
author_rank: Super Contributor
timestamp: September 19, 2019, 09:29:47 am
content: DMA is useful to move large amounts of data around whilst the CPU works on something else. You still have a service an interrupt when the DMA has completed, and re-set the DMA for the next transfer so like Nigel says it's likely you will increase CPU overhead compared to simply servicing the ADC interrupt.
Arduino UNO R3's USB to UART bridge uses for serial communication - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: October 03, 2019, 06:29:35 pm
content: Hello All,My friend is having an Arduino UNO R3 board. And, he is saying that USB to UART bridge can only be used for uploading the program and it can not be used for sending/receiving information from/to the microcontroller. I seriously doubt this...I read this "The ATmega16U2 - USB to UART bridge converter holds the microcontroller ATmega328 in reset as soon as Arduino IDE opens...Does it means that closing the IDE will release the microcontroller from reset and we can send/receive information over USB to UART bridge converter...Please suggest...Thanks,Muthu

author: Ian.M
author_rank: Super Contributor
timestamp: October 03, 2019, 07:09:34 pm
content: Not even that - the IDE has a serial terminal mode that can be used to send & receive serial data to/from the Arduino without closing the IDE, or you can use a third party terminal program. However the Arduino hardware is designed to reset the AVR when the USB COM port is initially opened, so if you want to keep your firmware running on the Arduino and reconnect to it for serial data without resetting the AVR, you need to do a board mod.
Re: Arduino Encoder to Stepper Motor question, help? - Page 1
Forum section: electronics / general

author: bkukuk62
author_rank: Newbie
timestamp: September 17, 2019, 05:25:34 pm
content: All,I have been reviewing the following code from gman4925. I would like to see if this could be modified to include a button that would break out of the interactive mode using the encoder for rotation to turning the stepper clockwise until another button is pushed using a potentiometer for speed control.Has anyone done this that could help me.thanks,-Bkukuk62//Arduino code for controlling stepper motor from encoder//video at//reconstructed code from 5+ years ago//untested in current form#define encoder_a 2 //encoder a = arduino pin 2#define encoder_b 3 //encoder b = arduino pin 3#define motor_step 4 //motor step = arduino pin 4#define motor_direction 5 //motor direction = arduino pin 5volatile long motor_position, encoder;void setup (){//set up the various outputspinMode(motor_step, OUTPUT);pinMode(motor_direction, OUTPUT);// then the encoder inputspinMode(encoder_a, INPUT);pinMode(encoder_b, INPUT);digitalWrite(encoder_a, HIGH);digitalWrite(encoder_b, HIGH);// encoder pin on interrupt 0 (pin 2)attachInterrupt(0, encoderPinChangeA, CHANGE);// encoder pin on interrupt 1 (pin 3)attachInterrupt(1, encoderPinChangeB, CHANGE);encoder = 0;}void encoderPinChangeA(){if (digitalRead(encoder_a) == digitalRead(encoder_b)){encoder--;}else{encoder++;}}void encoderPinChangeB(){if (digitalRead(encoder_a) != digitalRead(encoder_b)){encoder--;}else{encoder++;}}void loop(){//do stuff dependent on encoder position here//such as move a stepper motor to match encoder position//if you want to make it 1:1 ensure the encoder res matches the motor res by dividing/multiplyingif (encoder > 0){digitalWrite(motor_direction, HIGH);digitalWrite(motor_step, HIGH);digitalWrite(motor_step, LOW);_delay_us(200);motor_position++;encoder = 0;}else if (encoder < 0){digitalWrite(motor_direction, LOW);digitalWrite(motor_step, HIGH);digitalWrite(motor_step, LOW);_delay_us(200);motor_position--;encoder = 0;}}

author: Nusa
author_rank: Super Contributor
timestamp: September 17, 2019, 06:20:40 pm
content: Which part are you having trouble with?Button/Switch or Potentiometer? Plenty of tutorials on those.Speed? Change the delay value.Logic?if (your_way){// your code}else{// existing code}
STM32 Arduino STM32L151 support? - Page 1
Forum section: electronics / general

author: IanJ
author_rank: Unknown
timestamp: September 15, 2019, 06:47:01 pm
content: Hi,I have been playing with STM32 microcontrollers......there's a lot of variants to choose from......and I think I'd like to use the STM32L151 series as it fits my needs perfectly.......but in the Arduino boards manager as much as there's quite a list of chips there is no support for the L151.Has anyone added this one.....if so can you share your files?PS. I want to keep the Arduino IDE as I have a lot of libraries developed there.Ian.

author: thm_w
author_rank: Super Contributor
timestamp: September 16, 2019, 09:34:05 pm
content: Looks like the L152RE is there:https://github.com/stm32duino/Arduino_Core_STM32Maybe you can port it to 151.Its also possible to use the arduino libraries outside of the IDE.

author: IanJ
author_rank: Unknown
timestamp: September 17, 2019, 10:49:42 am
content: Hi,I did actually try that but the 152 listed is a bigger package and although I got the I/O pins changed I got all sorts of other issues......just seemed too different.I am after the LQFP48 package 151.I will take a closer look at the 152's though.....thanks.Ian.
MPLAB X IDE 5.25 issues - Page 1
Forum section: electronics / general

author: Miti
author_rank: Super Contributor
timestamp: September 12, 2019, 12:57:12 pm
content: I bought a Pickit 4 and I installed the latest Mplab v 5.25. The first start gave me the BSOD, the first BSOD since I installed Win 7 on my laptop. After restart, the ide froze. Then it just closed by itself. After that it started working... kinda. Then I tried the IPE. It wouldn't connect to PIC16F946 no matter what, wrong id even though it should be supported by Pickit 4 and it does program it from IDE.Any experience with this version of Mplab?I see some complain about issues with v 5.20. What's the latest known stable version?

author: Miti
author_rank: Super Contributor
timestamp: September 12, 2019, 04:05:32 pm
content: Same with MPLAB v 5.15. Pickit 3 is OK, Pickit 4 has a problem with the "correct" ID. IDE doesn't seem to be bothered. What's going on?Is it time for another Pickit rant Dave? Or you already did it and I missed it.

author: westfw
author_rank: Super Contributor
timestamp: September 13, 2019, 01:55:09 am
content: I’m running 5.25 on a Mac, and it works “ok”...I believe one of the release notes said that it’s now a 64bit application... is your win7 a 64bit version?

author: Miti
author_rank: Super Contributor
timestamp: September 13, 2019, 02:31:21 am
content: Quote from: westfw on September 13, 2019, 01:55:09 amYes it is.
Can you indetify this chip and what it does?  - Page 1
Forum section: electronics / general

author: mrunje96
author_rank: Newbie
timestamp: September 09, 2019, 04:38:18 pm
content: Hi, i got this chip on some midi controller, i guess it does something with power, but i didnt find anything on google by typing marks on it..

author: RES
author_rank: Regular Contributor
timestamp: September 09, 2019, 04:46:40 pm
content: ISL8033https://www.renesas.com/us/en/products/power-management/switching-regulators/integrated-fet-regulators/device/ISL8033.html
Is there a design pattern for a multichannel pulse stretcher? - Page 1
Forum section: electronics / general

author: e100
author_rank: Frequent Contributor
timestamp: September 06, 2019, 04:25:32 pm
content: For a single channel you can set a timer interrupt that uses a callback to end the stretching of the pulse.What if you have more channels than timer interrupts.My Google searches haven't found anything. Is there a particular phrase I should be searching for?

author: Bassman59
author_rank: Super Contributor
timestamp: September 06, 2019, 04:35:32 pm
content: Quote from: e100 on September 06, 2019, 04:25:32 pmYou probably need to have a timer of your desired pulse-width granularity, and table with pulse widths. When the timer expires, increment a count, and check all of the pulse width tables to know when to toggle outputs. But this is ugly and there will be skew between pulses which might not be acceptable.Consider connecting a small FPGA to the micro and building as many pulse generators as you need in it. A simple SPI port can be used to set pulse widths and maybe a trigger too.
Problem decode UART on DSlogic - Page 1
Forum section: electronics / general

author: arcticfish
author_rank: Newbie
timestamp: September 05, 2019, 04:40:01 am
content: Hi all,Anyone has a DSlogic able to advise? I just bought a DSlogic to test out. To test this newly bought LA and the DSview whether it work as expected, I used a serial terminal software in my setup to send a ascii text "testing" to USB-RS485 device, then to the LA probe, and LA capture and send the reading to the DSview. The DSview was able to display 7 characters captured but it showed all zero on the data. Is there anything I did wrong?You may refer to attachment for my setup.Your advise is greatly appreciated

author: Psi
author_rank: Super Contributor
timestamp: September 05, 2019, 05:17:27 am
content: RS485 is differential. I think that's your first problem.I don't know much about DSlogic but i would assume the inputs are ground ref not differential.

author: arcticfish
author_rank: Newbie
timestamp: September 05, 2019, 03:14:34 pm
content: Thanks PSI. I got it, it was the differential wiring mistake.I still require some figuring how this software work. Not sure why the signal invert box has to be checked in DSview in order to see the corrected data.

author: Psi
author_rank: Super Contributor
timestamp: September 06, 2019, 04:16:54 am
content: Quote from: arcticfish on September 05, 2019, 03:14:34 pmSome serial standards are inverted with respect to others.So no matter what default they decide to use in the software someone will need invert enabled to get correct data.