hybridfree/eevblog-posts huggingface dataset:
Cheap Inertial measurement unit (IMU) - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: January 10, 2016, 08:32:23 pm
content: I've been playing around with an inexpensive (<$10 incl shipping) MPU6050-based IMU, which is a 3-Axis Gyro+ 3-Axis Accelerometer + a Kalman filter which gives Attitude (roll, pitch & yaw).http://www.dx.com/p/mpu6050-serial-6-axis-accelerometer-gyroscope-module-kalman-filtering-angle-output-for-arduino-414210As it uses TTL-level serial it was easy to got it running with a Raspberry Pi Zero and an FPGA board, and now just have to find something useful to do with it!The manual that is linked to with the part is all in Chinese, so I've documented things on my Wiki if anybody else wants to play with one. Seehttp://hamsterworks.co.nz/mediawiki/index.php/MPU6050_sensor&http://hamsterworks.co.nz/mediawiki/index.php/MPU6050_sensor_RTL

author: dannyf
author_rank: Super Contributor
timestamp: January 10, 2016, 09:14:14 pm
content: A far more authoritative source of information is invensense' ducumentation / code on dmp.

author: hamster_nz
author_rank: Super Contributor
timestamp: January 10, 2016, 10:40:22 pm
content: Quote from: dannyf on January 10, 2016, 09:14:14 pmTrue, but this board has a little bit more on it - it processes the raw Gyro / Accelerometer data to give roll/pitch/yaw, and then reports over RS232, so you can avoid all that yeachy math stuff, making it simple to use with a small controller.So you don't actually need to talk I2C to the sensor itself, or port the Invensense driver to your controller.

author: Mechatrommer
author_rank: Super Contributor
timestamp: January 10, 2016, 11:59:53 pm
content: are you sure it has kalman filter built in? the datasheet only mentioned "low pass filter" signal conditioning...http://www.seeedstudio.com/wiki/images/b/b1/MPU6050.pdfi have few of them for future rc project...

author: hamster_nz
author_rank: Super Contributor
timestamp: January 11, 2016, 12:49:44 am
content: Quote from: Mechatrommer on January 10, 2016, 11:59:53 pmDefinitely - this the decoded serial data :Code:...1452329359.732404 Acceleration -1.49 -6.24 -7.65 ( 9.98)1452329359.745713 Rotation -2.44 0.31 -0.551452329359.756980 Attitude 140.84 9.72 90.731452329359.776160 Acceleration -1.51 -6.29 -7.69 ( 10.05)1452329359.789532 Rotation -2.44 0.37 -0.371452329359.800751 Attitude 140.84 9.72 90.731452329359.819940 Acceleration -1.49 -6.26 -7.66 ( 10.01)1452329359.833240 Rotation -2.44 0.43 -0.491452329359.844507 Attitude 140.84 9.72 90.73...There looks to be an additional MCU from ST on it, running the filter and interface.http://www.dx.com/p/mpu6050-serial-6-axis-accelerometer-gyroscope-module-kalman-filtering-angle-output-for-arduino-414210
Debug OTF_FS_IRQHandler problem - Page 1
Forum section: electronics / general

author: farsi
author_rank: Regular Contributor
timestamp: January 08, 2016, 10:18:32 am
content: Hi,in my STM32F4 project, I am trying to make the VCP (on Windows) work.After initializing USB OTG with the standard line from examples:USBD_Init(&USB_OTG_dev, USB_OTG_FS_CORE_ID, &USR_desc, &USBD_CDC_cb, &USR_cb);The interrupt OTG_FFS_IRQHandler fires, and I end up in the default handler.Not sure what happens because the device remains attached. What approach could be used to debug this USB problem?Thanks!

author: farsi
author_rank: Regular Contributor
timestamp: January 08, 2016, 10:49:12 am
content: Found some help here already:http://electronics.stackexchange.com/questions/199447/stm32f4-usb-vcp-pc-receive-all-0x00But not sure, they talk about// Configure USB Clock SourceRCC_OTGFSCLKConfig(RCC_OTGFSCLKSource_PLLVCO_Div3);// Enable USB ClockRCC_AHBPeriphClockCmd(RCC_AHBPeriph_OTG_FS, ENABLE);

author: Brutte
author_rank: Frequent Contributor
timestamp: January 08, 2016, 01:26:25 pm
content: Quote from: farsi on January 08, 2016, 10:18:32 amThe default_handler is a stub to redirect IRQs authors didn't bother to implement. So NVIC triggered some IRQ which jumped to default_handler. The problem is there are many IRQs that do the same so it is not possible to say straight away which IRQ source (timer, gpio, USB, uart) did that jump (jumps won't leave trace on stack).You might provide a unique handler for each IRQ table entry, with a breakpoint inside (asm("bkpt 0x00")to catch the bait.

author: farsi
author_rank: Regular Contributor
timestamp: January 08, 2016, 02:06:31 pm
content: Thanks, yes, that was the route to success.Interesting indeed that there seems no "easy" way to catch the stack and/or origin of the interrupt.

author: Brutte
author_rank: Frequent Contributor
timestamp: January 08, 2016, 06:08:16 pm
content: Quote from: farsi on January 08, 2016, 02:06:31 pmIRQ vector is just a jump (being strict, an address to "jump" to), not a call so no trace.B.T.W, the (current) IRQ number active is stored in SCB->ICSR.QuoteHowever, the core can be allowed to interrupt interrupts so it might get messy because the stack won't tell you the truth. That is why there is also:Quote
Anyone got the straight dope on Spartan 7 availability? - Page 1
Forum section: electronics / general

author: JoeN
author_rank: Frequent Contributor
timestamp: January 04, 2016, 10:14:55 pm
content: Initial devices and packages, etc? I can't even find a public datasheet yet.http://www.prnewswire.com/news-releases/xilinx-announces-the-spartan-7-fpga-family-300181620.html

author: Someone
author_rank: Super Contributor
timestamp: January 05, 2016, 06:30:11 am
content: Artix 7 devies have only just started dribbling out, Xilinx announce product lines well in advance of their wide availability.

author: JoeN
author_rank: Frequent Contributor
timestamp: January 05, 2016, 07:18:43 am
content: Quote from: Someone on January 05, 2016, 06:30:11 amWish they could supply a datasheet. You would think they have a very good idea what they are going to supply at this point.

author: KE5FX
author_rank: Super Contributor
timestamp: January 05, 2016, 11:15:49 am
content: I'll bet they're just Artix parts that failed GTP transceiver validation.

author: marshallh
author_rank: Unknown
timestamp: January 05, 2016, 08:22:42 pm
content: I'd say we are still at least a year out before engineering samples go to top customers. General availability probably 6-12months after that.Luckily Xilinx pushes out chips faster than Altera (just watch for the errata)

author: Someone
author_rank: Super Contributor
timestamp: January 05, 2016, 09:44:15 pm
content: Quote from: JoeN on January 05, 2016, 07:18:43 amThe early Artix data sheets showed many small devices which were dropped well before release, the final product lineup is up in the air.
MPLABX and different board configurations - Page 1
Forum section: electronics / general

author: JJalling
author_rank: Unknown
timestamp: January 04, 2016, 09:55:59 am
content: Hi,I have a product with a PIC microcontroller on the board. The board exists in (currently) two revisions, and each revision has a slightly different PIC micro (both PIC18).Is it possible to support both boards in the same project in MPLABX?How do you handle a situation like that? Have a project for each board revision, and keep the sources in sync betweeb the two?BR Jonas

author: Feynman
author_rank: Regular Contributor
timestamp: January 04, 2016, 10:28:31 am
content: You can add different configurations for one project. Each configuration has its own project settings (target processor, compiler, ... everything). Copy your "default" configuration as a starting point.If your code depends on the board revision, you can add compiler macros (defines) for each configuration.Code:#if defined(BOARD_REV1)// conditional code#elif defined(BOARD_REV2)// conditional code#else#warning no board revision selected#endif

author: JJalling
author_rank: Unknown
timestamp: January 04, 2016, 10:35:15 am
content: Excellent, that does the job!! ThanksBR Jonas

author: Howardlong
author_rank: Super Contributor
timestamp: January 04, 2016, 09:34:10 pm
content: Another option I've used in order to simplify field distribution of firmware is to probe the board at runtime during boot up. That way there's only one firmware file, but it assumes your using roughly the same processor, and the board versions aren't too dissimilar.
An interesting mcu framework that fits into a tinyAVR  - Page 1
Forum section: electronics / general

author: autobot
author_rank: Regular Contributor
timestamp: January 04, 2016, 04:18:43 pm
content: An interesting project: an mcu framework that's "efficient enough for a small ATtiny, yet powerful enough to make use of advanced capabilities found on the 32bit ARM Cortex-M"http://xpcc.io/
Lattice Diamond program FTDI issue - Page 1
Forum section: electronics / general

author: peepo
author_rank: Contributor
timestamp: December 29, 2015, 04:32:22 pm
content: Help needed using Lattice Diamond 3.6.0.83.4 with MachXO3 Starter Kit on Ubuntu 14.04Diamond is installed and runs, but does not program:ERROR - Failed to Open FTDI USB port. Make sure to select the right cable type.$ sudo udevadm test /dev/bus/usb/003/007unable to open device '/sys/dev/bus/usb/003/007'$ lsusbBus 003 Device 007: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO ICudev rules re: ftdi_sio added and restartedDetect Cable:INFO - No Lattice HW-DLN-3C (parallel) cable detected.INFO - No Lattice HW-USBN-2A cable detected.INFO - Board with FTDI USB Host Chip detected.INFO - Multiple cables were detected.Program:Starting: "pgr_program run"INFO - Check configuration setup: Start.INFO - JTAG Chain Verification. No Errors.INFO - Check configuration setup: Successful.INFO - Device1 LCMXO3LF-6900C: LCMXO3LF-6900C: Verify IDINFO - Operation Done. No errors.INFO - Device1 LCMXO3LF-6900C: SPI-S25FL204K: SPI Flash Background Erase,Program,VerifyInitializing...IDCode Checking...ERROR - Verification Error...when Processing function: 'CHECK_ID'ERROR - Operation: unsuccessful.ERROR: pgr_program failed.ERROR - Programming failed.HW-USBN-2B (FTDI) is now pre-selected

author: ale500
author_rank: Frequent Contributor
timestamp: January 01, 2016, 06:56:29 am
content: Did you read this thread ?https://www.eevblog.com/forum/microcontrollers/lattice-diamond-is-making-me-sad/

author: peepo
author_rank: Contributor
timestamp: January 01, 2016, 08:59:08 am
content: yes I read that thread ,and left a reply asking followers to reply to this thread.~:"

author: ale500
author_rank: Frequent Contributor
timestamp: January 01, 2016, 02:39:58 pm
content: That I read, but how about your usb configuration ? which ftdi module is being loaded ? (The usb issues are also present with altera's ByteBlaster as as usual Ubuntu is not officially supported but you can find how to do the usb configuration. I used to try this in CentOS having Diamond doing almost one try and then having to reboot to be able to try to program again, I didn't know at the time that ftdi_sio trick. That's why I suggested it.

author: peepo
author_rank: Contributor
timestamp: January 01, 2016, 04:31:49 pm
content: okay thanks,please list the tests you would like me to make,ie to define and confirm why programming is broken.brief notes:Diamond 'Detect Cable' is not showing USB2 option, though HW-USBN-2B (FTDI) is showingI have set up udev rules and removed ftdi_sioI also made link to Diamond libftd2xx.so
Arduino Counter Bug - Page 1
Forum section: electronics / general

author: Electro Fan
author_rank: Super Contributor
timestamp: January 03, 2016, 06:03:30 am
content: Just checking to see if anyone might be up for helping to debug an issue with this sketch:http://www.14core.com/working-on-shift-register-on-8-bit-binary-counter/it gives this error:exit status 1'data' was not declared in this scopeThx

author: f1rmb
author_rank: Regular Contributor
timestamp: January 03, 2016, 06:27:43 am
content: Quote from: Electro Fan on January 03, 2016, 06:03:30 amJust comment "sending data; //..." line. Datatype isn't declared anywhere, data variable never used.Cheers.

author: adam1213
author_rank: Regular Contributor
timestamp: January 03, 2016, 07:09:57 am
content: The other syntax issue with the code is on line 41 "error: lvalue required as left operand of assignment" - there is a stray "!"else {!pinState = LOW;

author: Electro Fan
author_rank: Super Contributor
timestamp: January 03, 2016, 10:47:28 am
content: Thanks for the help - I think I've got it sorted out now.
Everything including the Kitchen sink under $1 - Page 1
Forum section: electronics / general

author: thewyliestcoyote
author_rank: Regular Contributor
timestamp: December 25, 2015, 10:14:13 pm
content: Hello,I recently picked up a microcontroller project that had some more cost constraints than I normally work with. After some research about what is out there. It got me thinking what is packed into a cheap microcontrollers these days.Post your find for the microcontroller under a $1 for 1ku with the most features. Here are a couple of my picks.Microchip PIC16LF1709Microchip PIC16F1764Microchip PIC16F1619Cypress CY8C21123-24SXITSilicon Labs EFM32ZG110F32Texas Instruments MSP430G2332IRSA16RWhat can everyone else find?

author: Kalvin
author_rank: Super Contributor
timestamp: December 26, 2015, 05:42:32 pm
content: Digikey has some devices listed, see through pages 1 - 70:http://www.digikey.com/product-search/en/integrated-circuits-ics/embedded-microcontrollers/2556109?k=embedded%20microcontroller&ColumnSort=1000011There are quite a few processors to choose from, from 8-bitters to 32-bitters. You just need to decide what features are needed to meet the requirements. And sometimes you just have to look for higher price MCU or think alternative solutions.

author: thewyliestcoyote
author_rank: Regular Contributor
timestamp: December 26, 2015, 08:56:55 pm
content: Lol,Kalvin I agree 100%, but I have finished that project. This is just for fun to find the most "feature packed" cheap MCU's out there and what kind of applications or place they have in the market. 10 years ago I was overjoyed with a ok 8bit ADC and a couple of timers, now it is awesome what is out there for under $1.

author: Kalvin
author_rank: Super Contributor
timestamp: December 26, 2015, 09:04:41 pm
content: Few months ago Cypress had a campaign for PSoc 4200 at $1. I bought a few eval-kits (sticks) for $4 each, but haven't had time to try them yet.

author: Marco
author_rank: Super Contributor
timestamp: December 26, 2015, 09:06:35 pm
content: Freescale's cortex M0s were excellently priced, of course no idea if NXP will maintain the price structure going forward. For now they are still cheap.MKE04Z8VFK4 for instance.
Can I use DC Motor with 5V DC supply directly or I have to use something?? - Page 1
Forum section: electronics / general

author: jimmy2447
author_rank: Newbie
timestamp: December 27, 2015, 06:30:19 am
content: Helo guysss... this is my first post in this forum.. looks very great forum.My problem is that im not sure weather to connect a DC Motor directly to 5V or 2.5V DC directly is good or It can make the DC Motor damage.. sorry for any idiotic words..

author: Robartes_m
author_rank: Contributor
timestamp: December 27, 2015, 08:34:25 am
content: Quote from: jimmy2447 on December 27, 2015, 06:30:19 amYes, you can run it directly from 5V - that's why it's called a 5V DC motor. However, if you want to drive it from a microcontroller or logic gate output, you will need a transistor to switch it as the current it draws is usually too much for a logic gate.If you want to run the motor bidirectionally (ie able to turn clockwise and anticlockwise) you will need something called an H-bridge. You can build it yourself out of 4 MOSFETs or use one of the many H-bridge / motor driver ICs available.

author: jimmy2447
author_rank: Newbie
timestamp: December 27, 2015, 09:27:59 am
content: thanks very much... and another thing i have to ask that how to know the working voltage range for a DC Motor.. it does not have any mark on it.

author: Whales
author_rank: Super Contributor
timestamp: December 27, 2015, 09:39:29 am
content: If you post a picture we may be able to give you an approximate voltage range.The higher the voltage you feed a brushed motor, the faster it can spin. Off the top of my head there are three things that limit the maximum voltage you can run a brushed DC motor at:- Maximum heat dissipation. Motors heat up, especially if they are doing lots of work. eg if your motor is driving something uphill then it will get much hotter than if it is spinning with nothing attached.- Maximum insulation and creepage voltage. Generally this is way above the voltage you would normally run the motor at (well above 20 or probably even 50V)- Maximum mechanical speed. At some point the motor will self destruct. At different speeds and conditions it will wear at different rates.Most often the first problem of thermal limitations is what you hit first. Power that can be dissipated (heat) increases dramatically as you increase the voltage. Most small, cheap, brushed DC motors will happily run on 5V without problems, provided you are not stalling them.

author: jimmy2447
author_rank: Newbie
timestamp: December 27, 2015, 12:51:08 pm
content: Thank u very much sir.. appreciate ur help.

author: lichao
author_rank: Newbie
timestamp: December 28, 2015, 07:05:12 am
content: In order to use with an Arduino, you need to use a mosfet or H-bridge with external power. mcu itself cannot provide enough current.
I2C Slave address acknowledge problem - Page 1
Forum section: electronics / general

author: rill17
author_rank: Contributor
timestamp: December 26, 2015, 02:07:11 pm
content: hi, i'm using an lpc1115 board to interface with a gyroscope/accelerometer board and I am sending the correct device id however am failing to recieve an acknowledge from the board. i am using the lpc1115 as the master and the following is my code. i am also generating an interrupt each 100ms so as to update the registers each 100ms. i verified that the slave address is 0x68 by using a scope, connections were verified to be correct several times and i am using 10k pull up ressistors with the SDA and SCL lines. the following is a link to the accelerometer/gryro boardhttp://www.invensense.com/products/motion-tracking/6-axis/mpu-6050/Please Help, thanks

author: Gixy
author_rank: Regular Contributor
timestamp: December 26, 2015, 11:53:46 pm
content: HI,I don't see your code but a common mistake is to think that the slave address is expressed as a byte: it is a 7 bit word, which should be followed by the direction bit (0=write, 1=read). In your case, 0x68 gives the 7 first bits of the byte. You should then send 0xD0 to write something to the device, and 0xD1 to read something (this assuming your device is configured with pin 9 low, if not the 7 bit adress will be 0x69). Hope this helps.
32kHz Crystal oscillator with 74HC4060 - doesn't oscillate! (Now does!) - Page 1
Forum section: electronics / general

author: Yansi
author_rank: Super Contributor
timestamp: December 31, 2015, 01:57:39 pm
content: Hello!as I have mentioned in another thread about (still and again just other) FPGA minimalistic board, I like also to design small PLD kits. One of my boards includes Altera's EPM3064, a small 44pin CPLD. As a clock source, I decided to use a 32.768kHz crystal to provide both 2048Hz and 2Hz clocks, by using a "classic 4060" chip. But it doesn't work, I don't know why. That's the only thing preventing me from publishing the design for anyone interested.Can you please help me to solve the mystery, why it doesn't oscillate?As the whole board is powered from 3V3 supply, I have decided to use 74HC4060 version of the IC. The schematic diagram is below.I have tried 7pF and 12pF Cload crystals, tried changing the loading caps to whatever crazy values up some hundred puff, tried changing the feedback resistor from 100k up to 1M. (The series resistor R41 is now shorted) Nothing helped. And yea, the IC is not blown. Sticking a finger on its input makes it count.Do you have any ideas, what I have done wrong or how to design it properly, so it will oscillate?Btw, have also checked if there is enough gain margin, and as I remember there was a great margin.Thank you for help!Yan

author: PA0PBZ
author_rank: Super Contributor
timestamp: December 31, 2015, 02:04:15 pm
content: Broken crystal?

author: Yansi
author_rank: Super Contributor
timestamp: December 31, 2015, 02:17:47 pm
content: Tried two new ones (7pf and 12pF) and a few random junk ones in the THT (metal tube) package. None worked.

author: matseng
author_rank: Frequent Contributor
timestamp: December 31, 2015, 02:24:39 pm
content: Looking at some random 32K oscillators with the HC4060 it seems like the series resistor usually ranges from 50K up to 330K, and the parallel resistor us usually between 5M and 15M.

author: station240
author_rank: Unknown
timestamp: December 31, 2015, 02:31:41 pm
content: After poking google I found this PDFhttp://www.geocities.ws/k7hkl_arv/Cheap_Watch_Crystal_Oscillator.pdf

author: Yansi
author_rank: Super Contributor
timestamp: December 31, 2015, 03:27:49 pm
content: Hmm. Interesting idea. I have tried to reduce the value of the series resistor to increase the drive level and gain margin to try to force the oscillation. Maybe I should try the opposite way. Reduce the gain margin and it might magicaly work.So let's give it a shot.

author: Yansi
author_rank: Super Contributor
timestamp: December 31, 2015, 03:39:52 pm
content: Whatta?! The damned devil oscillates on first try. 4M7 feedback, 330k damping resistor in series, 22p caps with a 12.5p Cload crystal.That was solved fast. Doh... stupid me.Thank you, as always :-)Yan
HDL development tools - Page 1
Forum section: electronics / general

author: pix3l
author_rank: Regular Contributor
timestamp: December 22, 2015, 12:26:57 pm
content: Hi all,For professional use, I'd like to purchase a tool for VHDL development. So far I have tried Sigasi eclipse plugin and Amiq DVT eclipse plugin. Both are very nice tools which are a lot more capable than the Lattice Diamond IDE which previous choices have required me to use.Now comes the question: has any of you used these tools and if so, what are your recomendations for a choice?Best regards,Pix3l

author: Scrts
author_rank: Frequent Contributor
timestamp: December 22, 2015, 02:22:58 pm
content: I don't see any reason to buy something... E.g. I've always used Quartus and was happy with it. Some people use Emacs, which is also free.

author: nctnico
author_rank: Super Contributor
timestamp: December 22, 2015, 04:26:31 pm
content: Sigasi works nice but unfortunately they only sell time limited / node locked licenses so that is a no-go. I'm using the open source Veditor instead for VHDL which works OK and offers almost the same features as Sigasi when it comes to helping with making the sourcecode managable.@Scrts: the plugins pix3l is writing about help to navigate through large projects and do things like realtime syntax checking, code completion, etc. Once you get used to that you never want to get back to Notepads with a compile button stuck onto them.

author: pix3l
author_rank: Regular Contributor
timestamp: December 22, 2015, 04:32:49 pm
content: Thanks both for your answers!Indeed, Nico, once you are spoiled with such a tool that is smart enough to know what you want to type you don't want to go back.To clarify: both tools are available in floating license form but are indeed payed on a yearly basis.

author: pix3l
author_rank: Regular Contributor
timestamp: December 23, 2015, 08:52:54 am
content: Hi Nico,I just tried Veditor but I could not find a refactoring option, is this something that's missing?Best,Pix3l

author: nctnico
author_rank: Super Contributor
timestamp: December 23, 2015, 08:51:12 pm
content: It could be refactoring is missing from Veditor. I'm not quite sure though because it has been a while since I used it. I would happily spend the money on Sigasi if they provided a one time non-node locked license for a reasonable price or there was a possibility to work around the node locking. The software procurement rules simply forbid me to buy the kind of licenses they offer. Sigasi is a small company; if they go belly up you are left with non-working software you rely on. Too bad the people behind Veditor don't take donations to speed up development.
Using a can controller with an AVR - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: December 17, 2015, 07:49:25 pm
content: I am looking to start working with CAN. I gather that the MCP2515 is a popular and good chip to use. I am wondering before i start writing loads of code and learning detailed in's and out's of how to control the chip has someone just written a decent library to do that ? There seem to be a few about the net but I'm not sure what to do.

author: bingo600
author_rank: Super Contributor
timestamp: December 17, 2015, 08:16:42 pm
content: SimonI have these thing saved in my "Can folder", it's in german but google xlate would workhttp://www.kreatives-chaos.com/artikel/ansteuerung-eines-mcp2515http://www.kreatives-chaos.com/artikel/universelle-can-bibliothek#downloadshttps://www.mikrocontroller.net/topic/141667http://www.kreatives-chaos.com/artikel/can-testboardhttp://www.kreatives-chaos.com/artikel/can-bootloaderOther stuffTiming calchttp://www.intrepidcs.com/support/mbtime.htmhttp://siwawi.bauing.uni-kl.de/avr_projects/can/index.htmlHope it helpsEdit: I haven't used any of the above yet/Bingo

author: Simon
author_rank: Unknown
timestamp: December 17, 2015, 08:24:09 pm
content: I'm not that good with German unfortunately

author: bingo600
author_rank: Super Contributor
timestamp: December 17, 2015, 08:58:30 pm
content: But all are webpages or plain textsJust use google translate like thishttp://translate.google.com/First url xlated from German to Englishhttps://translate.google.com/translate?sl=de&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fwww.kreatives-chaos.com%2Fartikel%2Fansteuerung-eines-mcp2515&edit-text=/Bingo

author: Svuppe
author_rank: Regular Contributor
timestamp: December 22, 2015, 11:00:51 am
content: I don't know the MCP2515, but I do know that I wouldn't put it on an AVR. Not when there is an AVR with built-in CAN controller:http://www.atmel.com/devices/AT90CAN32.aspxOf course if there is a ready-to-use library for MCP2515 on an AVR, that may make more sense then.

author: gmb42
author_rank: Frequent Contributor
timestamp: December 22, 2015, 12:47:59 pm
content: Quote from: bingo600 on December 17, 2015, 08:58:30 pmTrue story, almost 2 decades ago I was looking for info on Profibus DP interface ICs and located a German mfr, with data sheets in German. Using the translator available at the time (Babelfish??) it came up with the unforgettable line about the current consumption of the IC, "Drinks current like a brick-layer". Wish I'd kept a link and a screen shot.

author: Simon
author_rank: Unknown
timestamp: December 22, 2015, 05:37:39 pm
content: Quote from: gmb42 on December 22, 2015, 12:47:59 pmComputer translators never will be perfect. Apart from being fluent in english I am mostly fluent in italian and know very well how difficult translating is.
Debugging Atmel QTouch designs - Page 1
Forum section: electronics / general

author: v8dave
author_rank: Regular Contributor
timestamp: December 22, 2015, 01:06:31 pm
content: I am working on SAMD20 design with a number of touch inputs configured via QTouch in Atmel Studio 7 and when I run the programme with the JTAG ICE3, I don't get any scanning of the touch inputs.If I run the programme without the debugger and put a coin on the touch surface of one of the buttons, I can pickup the signal from the touch driver but if I run under the debugger, there is nothing.Running without the debugger I can detect touch on the touch panel but again, under the debugger there is nothing running.Is there anyone here used this micro with touch and had the same issue? (I will likely post this on one of the Atmel forums but though it might catch someones attention here)
ESP8266 + MPU6050 6-axis MotionTracking device - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: December 19, 2015, 11:48:17 am
content: As been requested by many people that have difficulties to use the MPU6050 Modules, I've done a more detailed ESP8266 Video Tutorial related with the MPU6050 GY-521 Module initialisation and basic usage.It is a detailed, step-by-step tutorial, showing all the needed init stages and tests for a proper and smooth usage of the MPU6050 GY-521 module.Related Article:ESP8266 - MPU6050 GY-521 Module initialisation and basic usageHave a nice, pleasant and relaxing Christmas Holliday!

author: Ribster
author_rank: Frequent Contributor
timestamp: December 21, 2015, 02:11:38 am
content: Link is broken

author: miguelvp
author_rank: Super Contributor
timestamp: December 21, 2015, 05:09:08 am
content: Quote from: blueskull on December 21, 2015, 04:57:01 amThere is an extra Y on his link, here is the right video:

author: TJ232
author_rank: Frequent Contributor
timestamp: December 21, 2015, 06:22:23 am
content: Should be OK now.
JTAG Reverse Engineering - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2015, 11:00:35 pm
content: I was discussing with a friend about reversing an fpga-board which comes with an unknown .ucf, and he claimed that the .ucf can be determined without desoldering anything.His argumentation is based onthisarticle!

author: ataradov
author_rank: Super Contributor
timestamp: December 19, 2015, 11:32:56 pm
content: The tool mentioned in the article can detect connections between multiple JTAG-enabled devices on the same board. It basically uses standard boundary scan.It will have very limited (or none at all) usability for a board with a single FPGA. It will also not detect connections for LEDs, switches, and other external components.
Blackfin BF706 L2 SRAM - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: December 18, 2015, 08:40:50 am
content: Hi,I'm now working on a project involves 48kpts of fract32, which is 192kB. Apparently, this is too big to be placed in L1 SRAM (32K+8K), so I need to put it into L2 SRAM. When I do nothing but declare a huge array, the DSP will simply hang up and lock itself.So here is the question: How to declare an array in L2 SRAM?With array declared in L2, it takes 2 cycles for the CPU to access it, which is not acceptable. So, how can I enable auto caching on this array so cache controller will automatically copy a portion of it at a time to L1, and access it from L1? I tried to enable allow data cache in .svc, and the DSP simply hangs itself up before even executing anything.Therefore, here is the second question: How to enable data cache?Forgive me if the questions are stupid, but I am a completely new player in DSP, and the only info regarding to cache is EE271, which is written for VDSP, while I am using CCES. FYI, my CCES version is 2.1.0.0 and my board is the $69 lite ez-kit with Rev. 1.0 chip.Thanks,Bo
Atmel EPROMs needed - Page 1
Forum section: electronics / general

author: R_G_B_
author_rank: Frequent Contributor
timestamp: December 16, 2015, 01:47:56 pm
content: Hi,can someone help me source /find these EPROM:AT27CD80 12DC 9803AT27CD80 10DC 9624ThanksR_G_B_

author: ElektroQuark
author_rank: Unknown
timestamp: December 16, 2015, 02:38:55 pm
content: Try searching for AT27C080.

author: R_G_B_
author_rank: Frequent Contributor
timestamp: December 17, 2015, 12:48:51 am
content: Thanks Edonork.
ATSAM4SD32C | ADC issues. - Page 1
Forum section: electronics / general

author: CM800
author_rank: Frequent Contributor
timestamp: December 17, 2015, 10:41:58 pm
content: I'm afraid I'm back again, I have an issue with my ADC I cannot seem to resolve... the support for Atmel is very restrictive (mostly surrounds the Arduino area. Considering moving over to STM32 or a Freescale solution...Does anyone see what I am doing wrong here? I have been scratching my head all day on this with little to show for it.Code:#include <asf.h>void ADC_IrqHandler(void);void ADC_Setup(void);void PWM_Setup(void);void ADC_IrqHandler(void){//Check the ADC conversion statusif ((adc_get_status(ADC) & ADC_ISR_DRDY) == ADC_ISR_DRDY){//Get latest digital data value from ADC and can be used by applicationuint32_t result = adc_get_latest_value(ADC);PWM->PWM_CH_NUM.PWM_CPRDUPD = result;PWM->PWM_CH_NUM.PWM_CDTYUPD = result;PIOA->PIO_CODR = PIO_PA20;}}void ADC_Setup(void){pmc_enable_periph_clk(ID_ADC);PIOB->PIO_PDR |= PIO_PB1X1_AD5;adc_init(ADC, sysclk_get_main_hz(), sysclk_get_main_hz()/4, ADC_STARTUP_TIME_4);adc_configure_timing(ADC, 0, ADC_SETTLING_TIME_3, 1);adc_set_resolution(ADC, ADC_MR_LOWRES_BITS_12);adc_enable_channel(ADC, ADC_CHANNEL_5);adc_enable_interrupt(ADC, ADC_IER_DRDY);adc_configure_trigger(ADC, ADC_TRIG_SW, 0);}void PWM_Setup(void){PIOA->PIO_PER &= ~PIO_PA11B_PWMH0 & ~PIO_PA19B_PWML0;PIOA->PIO_PDR |= PIO_PA11B_PWMH0 | PIO_PA19B_PWML0; // enable PWMPIOA->PIO_IER &= ~PIO_PA11B_PWMH0 & ~PIO_PA19B_PWML0;; // disable interruptsPIOA->PIO_IDR |= PIO_PA11B_PWMH0 | PIO_PA19B_PWML0;PIOA->PIO_ABCDSR = PIO_PA11B_PWMH0 | PIO_PA19B_PWML0; // assign pin to peripheral Bpmc_enable_periph_clk(ID_PWM);PWM->PWM_WPCR = PWM_WPCR_WPKEY_PASSWD | (PWM_WPCR_WPRG4 << 2) | PWM_WPCR_WPCMD_DISABLE_SW_PROT;}int main (void){/* Insert system clock initialization code here (sysclk_init()). */sysclk_init();board_init();pmc_enable_periph_clk(ID_PIOA);pmc_enable_periph_clk(ID_PIOB);PWM_Setup();ADC_Setup();adc_start(ADC);int32_t width = 500;int32_t duty = 250;// equal deadtimePWM->PWM_CH_NUM.PWM_CMR = (PWM_CMR_CPRE_MCK_DIV_8 & 0xF) | PWM_CMR_DTE | PWM_CMR_CALG;PWM->PWM_CH_NUM.PWM_CPRD = width;PWM->PWM_CH_NUM.PWM_CDTY = duty;PWM->PWM_CH_NUM.PWM_DT = 5 | (10 <<15);PWM->PWM_ENA = (1 << PWM_CHANNEL_0);PIOA->PIO_PER |= PIO_PA20;PIOA->PIO_OER = PIO_PA20;PIOA->PIO_PUDR = PIO_PA20;while(1){};}
do you happen to have a mips2-uclibc rootfs  ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 15, 2015, 03:20:49 pm
content: I am becoming crazy because it actually does not exist!OpenWRT has MIPS32R2-uclibc, no MIPS2-uclibc, and no MIPS3-uclibcand forcing their builder to compile them sounds like headachebig endian machine, 32bit, I need such a rootfs in order to "append" it to a kernel I am developingas experimental machine's supportit means I can't trust the usb, or the scsi, so … I do not have any other chance to have a rootfsit MUST be ramrootfs, and in order to do so, it MUST be uclibc as glibc is tooooo bloated(I am size-limited under 12Mbyte for the whole, kernel + rootfs, and I can't load initrd as second file)let me knowthanks
GNU ARM Eclipse is now available from Eclipse Marketplace - Page 1
Forum section: electronics / general

author: ilg
author_rank: Newbie
timestamp: December 09, 2015, 01:57:56 pm
content: OverviewTheGNU ARM Eclipse projectincludes a set of open source Eclipse plug-ins and tools to create/build/debug/manageARM(32-bits) andAArch64(64-bits) applications and static/shared libraries, using the latestGNU ARM GCCtoolchains.Eclipse MarketplaceAiming to further improve the user experience while installing/updating the plug-ins, theGNU ARM Eclipseproject was registered toEclipse Marketplace:BenefitsThe main advantage of using the Eclipse Marketplace is asimplified install procedure, no longer requiring to manually enter the update site address.The Install buttonThe Eclipse Marketplace not only provides a centralised index to locate projects, it goes one step further and provides a drag-and-drop browser button.As seen above, the button can be included in any web page.To use it, justdrag-and-drop the button to a running Eclipse, and the plug-ins to install/update will be automatically identified:If, for any reason, this does not work, it is always possible to search the Eclipse Marketplace manually from within Eclipse menus:More infoFor more details about theGNU ARM Eclipseproject, please refer to the project sitehttp://gnuarmeclipse.github.io/.

author: Brutte
author_rank: Frequent Contributor
timestamp: December 09, 2015, 07:44:59 pm
content: Well, I never had any problems with installation of your wonderful plug-in or packs (huge thanks!) even though several clicks were needed. Now with marketplace integration that would be even closer to one-click-to-install IDE for ARMs (like with commercial IDEs).What is next? Wizarding?I'd love to have the uVision-compatibleconfiguration wizard annotations.

author: ilg
author_rank: Newbie
timestamp: December 09, 2015, 08:07:10 pm
content: > uVision-compatible configuration wizard annotationsa future version this might bring this too (please add a new enhancement request in GitHub Issues to be sure I don't forget about it), but before this a new wizard to create projects from packs will be implemented.

author: bson
author_rank: Unknown
timestamp: December 14, 2015, 12:41:03 am
content: Including support for OpenOCD? The whole edit-compile-program-debug cycle? If so, nice!!!

author: ilg
author_rank: Newbie
timestamp: December 14, 2015, 08:27:10 am
content: Quote from: bson on December 14, 2015, 12:41:03 amyes, the whole cycle, with debugging support, ready to run templates, emulator, and many more.
ZynqBerry Dev Board from Trenz puts Zynq-7010 SoC - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: January 06, 2016, 08:13:31 pm
content: The €99 Trenz Electronic TE0726 ZynqBerry Dev Board puts a Xilinx Zynq-7010 SoC into a Rasberry Pi compatible form factor with 64Mbytes of LPDDR2 SDRAM, four USB ports (in a hub configuration), a 100Mbps Ethernet port, an HDMI port, MIPI DSI and CSI-2 connectors, a PWM digital audio jack, and 128Mbits of Flash memory for configuration and operation. Scheduled availability: December 18, 2015.https://forums.xilinx.com/t5/Xcell-Daily-Blog/99-ZynqBerry-Dev-Board-from-Trenz-puts-Zynq-7010-SoC-into/ba-p/672086
SCK frequency for programming attiny13a - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: December 06, 2015, 04:42:35 pm
content: I've been working on an AVR programmer using a m328p clocked at 16Mhz. The datasheet for the 13a says the same thing as the other tiny AVRs:The minimum low and high periods for the serial clock (SCK) input are defined as follows:Low: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHzHigh: > 2 CPU clock cycles for fck < 12 MHz, 3 CPU clock cycles for fck >= 12 MHzThe 13s have the CLKDIV8 fuse set (lfuse: 0x6A), so they should be OK with a 300kHz clock (9.6Mhz/8 /4). Testing with a USBASP at 187500 works OK, and 375kHz fails as expected.Using the m328p clocked at 16Mhz, I used SPI DIV64, for a 250kHz clock, but it didn't work. DIV128 (125kHz) worked OK. I wondered if I had messed up the SPI clock settings, so I put a scope on the SCK line and confirmed DIV64 gives 250kHz and DIV128 gives 125kHz.I tried this with 3 different attiny13a-pu, date code 1430, and got the same result. Any ideas what's going on? Datasheet errata (i.e. 3 clock cycles are required for fck >9 Mhz) ? Batch of chips out of spec?

author: MagicSmoker
author_rank: Super Contributor
timestamp: December 06, 2015, 11:19:20 pm
content: You didn't specify the Vdd voltage, but typically the higher speed is only attained at 5V, speed is reduced at 3.3V (and even more so at 1.8V, which, IIRC, is the absolute minimum for some [not all!] of the ATTiny series) .

author: ralphd
author_rank: Frequent Contributor
timestamp: December 07, 2015, 12:07:26 am
content: Quote from: MagicSmoker on December 06, 2015, 11:19:20 pmThis is at 5V.

author: MagicSmoker
author_rank: Super Contributor
timestamp: December 07, 2015, 12:47:57 pm
content: Quote from: ralphd on December 07, 2015, 12:07:26 amHmmm... Okay, should work. Did you get the '13A from a reputable distributor (ie - not ebay or a parts broker)?

author: ralphd
author_rank: Frequent Contributor
timestamp: December 07, 2015, 01:07:43 pm
content: Quote from: MagicSmoker on December 07, 2015, 12:47:57 pmNo. I don't think there is any "fake" AVRs out there (too complicated to be cloned), but I guess factory rejects that work but are out of spec could find their way into the market.I've attached a photo of the chip underside.
piggy-prog ATtiny programmer release version - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: December 07, 2015, 01:56:34 am
content: I've just released version 1 of piggy-prog, which allows you to use a Pro Mini as a programmer for 8-pin ATttiny MCUs like the ATtiny85 and ATtiny13a.https://github.com/nerdralph/piggy-prog/Considering Pro Mini are selling for less than $1.50, it makes for a cheap and simple programmer. Full details in my blog post.http://nerdralph.blogspot.ca/2015/12/piggy-prog-release-version.html
Need help on RPi I2S audio - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: December 06, 2015, 02:34:55 am
content: Hi,I'm working on a RPi based audio analyzer, which requires simultaneous playback and record at 24bit 192ksps.I used BCM2708-I2S module, and I wrote my own audio machine definition and codec definition.My own driver works fine if I only declare the playback interface. When I tried to declare recording interface or both, the module won't be started.Here is the problem: "bcm2708-i2s 3f203000.i2s: missing DMA channel for stream: 1".I modified the driver from /sound/soc/bcm/rpi-dac.c and rpi-proto.c, as well as /sound/soc/codecs/pam1794a.c and wm8804.c.Also, I referred to Cirrus Logic's audio HAT's driver, and did not spot too many different.I derived my device tree descriptor file from rpi-dac's as well as Cirrus Logic's.So far, no progress. Any thoughts?Thanks,Bo

author: diyaudio
author_rank: Frequent Contributor
timestamp: December 06, 2015, 05:13:00 pm
content: This sounds like a very esoteric problem, interesting project. is it an audio spectrum analyser?

author: diyaudio
author_rank: Frequent Contributor
timestamp: December 06, 2015, 06:30:14 pm
content: Quote from: blueskull on December 06, 2015, 06:26:36 pmsounds interesting, PM me..
Vending machine protocols (MDB, DEX): SW implementation and HW interfaces - Page 1
Forum section: electronics / general

author: pascal_sweden
author_rank: Super Contributor
timestamp: December 01, 2015, 04:07:58 pm
content: Hello,I was wondering if there are people here on this forum with broad experience in vending machine protocols (MDB, DEX):- SW implementation- HW interfaces- Devices to test MDB and DEX- Reference Vending Machine Controller boards with good implementations for MDB and DEXPascal

author: dannyf
author_rank: Super Contributor
timestamp: December 05, 2015, 12:59:19 pm
content: If you know the protocol, I am sure it can be done.

author: nuhamind2
author_rank: Regular Contributor
timestamp: December 08, 2015, 02:18:23 am
content: I once was pulling all-nighter for a week developing MDB converter prototype (Arduino mega plus some jumper wire) to be used in exhibition . The device act as bridge between Vending Machine controller and PC, so the payment process can be controlled by PC.The MDB protocol itself is open, including the hardware spec and sw protocol. Don't know about DEX.
USI-I2C / USI-SPI on AVRs - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: December 01, 2015, 03:26:46 pm
content: As part of the HX711 milliohm meter project, I worked out a few modules that allow serial communications (I2C/SPI/USART) on the ATtiny85 utilizing its USI peripheral. Have to say that they are not that intuitive to use, and are far slower and less flexible than PIC's MSSP modules.

author: westfw
author_rank: Super Contributor
timestamp: December 02, 2015, 09:42:19 am
content: Yeah; I looked at Atmel's App Note on doing a UART with USI, and I wasn't very impressed :-(The SERCOM peripheral in their ARM chips looks ok, though.

author: Psi
author_rank: Super Contributor
timestamp: December 02, 2015, 10:42:22 am
content: not much point using a ATtiny unless you have no choice. Use an ATMega with proper UART SPI TWI port. (or save some money and use a stm32)

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: December 02, 2015, 05:51:29 pm
content: I agree that PIC peripherals are generally easier to use. However until recently no 8 pin PIC had hardware SPI, I2C or UART (only the 12F1822 and 12F1840 have all three). At the same clock speed PIC code is 2-4 times slower than AVR, so it needs more peripheral hardware to keep up.Try doing this:-on an 8 pin PIC!

author: ralphd
author_rank: Frequent Contributor
timestamp: December 02, 2015, 06:02:11 pm
content: Doing SPI on USI is pretty easy, but UART is a hack since the bitorder needs to be reversed, and the 8bit limit means spitting up 8N1 transmissions. If you only need tx, bitbanged UART can be done in under 30 bytes of asm.

author: Psi
author_rank: Super Contributor
timestamp: December 03, 2015, 11:29:14 am
content: Quote from: Bruce Abbott on December 02, 2015, 05:51:29 pmhaha, that made my daySo awesomebitbanging ethernet

author: dannyf
author_rank: Super Contributor
timestamp: December 05, 2015, 12:58:25 pm
content: QuoteReally nice. Can be done with USI as well.
Generate WLAN traffic under Linux for EMC measurements - Page 1
Forum section: electronics / general

author: davorin
author_rank: Unknown
timestamp: December 02, 2015, 01:48:30 pm
content: HelloHas someone a good idea how I could generate traffic on an embedded Linux platform with built-in WLAN adapter?There can't be another WLAN adapter where traffic is going through....just send out in the air (o;

author: nctnico
author_rank: Super Contributor
timestamp: December 02, 2015, 04:29:55 pm
content: A static IP address for the WLAN adapter and ping. As root you can set the rate and payload of pings.

author: Karel
author_rank: Super Contributor
timestamp: December 02, 2015, 04:42:44 pm
content: Indeed, ping is the simplest solution. Do a "man ping" for details.For example: ping -s 800 -i 0.2Only root can set interval less than 0.2 seconds. As root you can also use the -f option (flood).

author: davorin
author_rank: Unknown
timestamp: December 02, 2015, 04:43:25 pm
content: Well I'm not sure if there will be traffic if the WLAN adapter isn't connected to an AP...

author: moya034
author_rank: Regular Contributor
timestamp: December 02, 2015, 04:47:10 pm
content: Quote from: davorin on December 02, 2015, 04:43:25 pmIf you have it in ad-hoc mode, perhaps there is a setting to decrease the interval where it announces it's presence to the rest of the world.

author: mich41
author_rank: Regular Contributor
timestamp: December 03, 2015, 08:06:37 pm
content: I think ping in ad-hoc mode may work, provided that you add a static arp entry for the address being pinged.Another option - start hostapd if AP mode is available. This will broadcast beacon frames and will be usable with ping.If monitor mode is available, you can also try some of those various tools which employ frame injection.EDIT:And of course I'm stupid, because the easiest way is to trigger scanning, which typically is active and sends a bunch of probe packets. I think requesting association with some unavailable SSID also sends a few probe packets for this SSID before giving up.