hybridfree/eevblog-posts huggingface dataset:
Clear SRAM on AT91SAM3X8E (Arduino Due) - Page 1
Forum section: electronics / general

author: tomshirvo
author_rank: Regular Contributor
timestamp: January 15, 2015, 06:37:41 am
content: I have finished making my bootloader but I am not sure if when it starts the uploaded firmware that the SRAM is cleared of all the global variables used in the bootloader.I pass the location on the flash that the firmware was uploaded too. everything works but I am just wondering if things like the serial buffer that is a global variable is still allocated in the SRAM. All the variables from the bootloader can be wiped when the loaded firmware is started.Below is the code that is run that starts the uploaded firmware.ThanksCode:/*** Jump to CM3 vector table*/void _binExec (void * l_code_addr){__asm__ ("mov r1, r0 \n""ldr r0, [r1, #4] \n""ldr sp,  \n""blx r0");}/*** Name: binary_exec* Purpose: Execute the binary* Input:* - Application starting address* Output: If success, no return.* 1, address alignment error.* 2, address not executable.*/int binary_exec(void * vStart){int i;// -- Check parameters// Should be at least 32 words alignedif ((uint32_t)vStart & 0x7F)return 1;// Should in code or sram regionif ((uint32_t)vStart > CM3_SRAM_END)return 2;// -- Disable interrupts// Disable IRQ__disable_irq();// Disable IRQsfor (i = 0; i < 8; i ++) NVIC->ICER = 0xFFFFFFFF;// Clear pending IRQsfor (i = 0; i < 8; i ++) NVIC->ICPR = 0xFFFFFFFF;// -- Modify vector table location// Barriars__DSB();__ISB();// Change the vector tableSCB->VTOR = ((uint32_t)vStart & SCB_VTOR_TBLOFF_Msk);// Barriars__DSB();__ISB();// -- Enable interrupts__enable_irq();// -- Load Stack & PC_binExec(vStart);return 0;}

author: westfw
author_rank: Super Contributor
timestamp: January 16, 2015, 08:59:15 am
content: Normally the C startup code for a chip will reinitialize memory structures in complete ignorance that anything else might have data there. This includes only the memory space actually used by the new program (data and bss), not heap memory. (however, if malloc() is used ITS data structures will be initialized, and malloc()ed memory is cleared.
C++ library: (sw) fixed point (through overload) - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: January 14, 2015, 12:55:42 pm
content: Quotesource browseCode:./test2 1.1 1.2sizeof fixed_t = 12..12 bytesa = 1.1b = 1.2a+b = 2.3a-b = -0.1a*b = 1.32-a = -1.1b++ = 1.3a = 1.1000 ... operator precisiona/b = 0.9a.whole() = 1is a == b? nois a != b? yesis a < b? yesis a <= b? yesis a > b? nois a >= b? noto summarize, this library make possible to use a fixed point type as natural as the floating point typeto make that, it defines a class and then it uses the C++ overload feature in order to redefine operators {+,-,*,/, ...}enjoy =)

author: legacy
author_rank: Super Contributor
timestamp: January 14, 2015, 12:57:18 pm
content: p.s.it is not a professional code, also a lot of improvements are needed, being warned about that

author: nctnico
author_rank: Super Contributor
timestamp: January 15, 2015, 08:34:38 am
content: I didn't look at the source but I'm wondering what kind of code the compiler creates to turn the floating point values into integers. That usually is pretty ugly and slow without FPU. But there are some neat tricks here. See:http://stackoverflow.com/questions/429632/how-to-speed-up-floating-point-to-integer-number-conversion/429812#429812
Arduino Due SPI CLK output - Page 1
Forum section: electronics / general

author: tomshirvo
author_rank: Regular Contributor
timestamp: January 14, 2015, 12:43:59 am
content: I have been working on getting a external SPI flash Chip to work with the Arduino Due.I am running it at 41Mhz as the chip only goes to 80Mhz and I can't set the clock to that.Attached below is the output of the clock line on my scope.So my question is, is the output of the clock look ok??

author: dannyf
author_rank: Super Contributor
timestamp: January 14, 2015, 01:06:06 am
content: QuoteWhat clock?

author: tomshirvo
author_rank: Regular Contributor
timestamp: January 14, 2015, 01:28:23 am
content: Sorry, the SPI CLK that is on the 2*3 SPI header on the Arduino DUE

author: c4757p
author_rank: Super Contributor
timestamp: January 14, 2015, 01:35:23 am
content: What's the bandwidth of your scope? You need a fairly beefy one to see theshapeof a 40 MHz square wave. (100 MHz won't cut it, and 50 MHz is right out.)

author: tomshirvo
author_rank: Regular Contributor
timestamp: January 14, 2015, 01:40:37 am
content: I have a DS1104Z so 100Mhz so looks like it won't cut it then.Thanks

author: dannyf
author_rank: Super Contributor
timestamp: January 14, 2015, 01:59:01 am
content: 41Mhz SPI clk? What is your flash chip's fastest clock rate?

author: dannyf
author_rank: Super Contributor
timestamp: January 14, 2015, 02:10:26 am
content: Aside from the clock rate, you want to make sure that there is sufficient swing. Most of those pins are ST so 0.2-0.8xVdd is all you need. Being sine (vs. square) has the added advantage of low emf emission.
MN101EF31GXW Dump Read Write Programming HELP!! - Page 1
Forum section: electronics / general

author: relax79
author_rank: Contributor
timestamp: January 13, 2015, 10:26:30 pm
content: Hello friends, First sorry for my poor English.I have a some heat pump system board, called avi board from Airwell systems."http://www.ebay.com/itm/Airwell-467300275R-AVI-Board-/301069946414?pt=L%C3%BCftungs_Klimatechnik&hash=item46192ace2e"and"http://www.weigel-consulting.de/?p1=Elektronik%20/%20SPS&p2=Airwell%20467300275R%20AVI%20Board"Board is fulty but I am nothing found a malfunction ,I think is error flag or something or corruption.If i find a way to dumping firmware or flash area then I am request a new one to dump and write this one .Board use MN101EF31GXW chip ,I download a lot of document but I can not understand programming to how. I need "Clock Synchronous Seial" programming but i can not find any source. AM1 series brochure says• Supports rewriting using JEDEC compliant command format• Provides samples of rewriting programs• Rewriting from the serial port specified by users is possiblewithout any special tools.Datasheet "http://www.4shared.com/office/qdLMMvxkba/21631-022e.html"Brochure "http://www.4shared.com/office/mqPGM2vAce/A000131E_2.html"Program port "http://www.4shared.com/photo/rzYR3OO-ba/AVI_BOARD_PROGRAM_PORT.html"Serial Support "http://www.4shared.com/photo/e_5cWA-Cba/MN101_serial.html"Can anybody help me for this? Thanks.
Reset for programming 328p - Page 1
Forum section: electronics / general

author: vini_i
author_rank: Regular Contributor
timestamp: January 13, 2015, 03:15:50 pm
content: i'm designing a board with a atmega328p (uno) and a ftdi chip ft230x. originally i was just going to debug with the ftdi chip but i figured i might as well set the board up for programming with a boot loader. normally we program with a usb tiny isp.what would be the appropriate way to hook up the ftdi chip to the 328p to generate a reset before programming?

author: Michal_S
author_rank: Contributor
timestamp: January 13, 2015, 04:16:37 pm
content: For example, Arduino uses DTR line connected through a capacitor to the AVR reset pin. You can look up the schematic (Arduino Nano)http://arduino.cc/en/uploads/Main/ArduinoNano30Schematic.pdf.
Cheaper DS2764 (LiPo Gauge/protection) and LTC3532 (Buck/Boost) alternative - Page 1
Forum section: electronics / general

author: PeterFW
author_rank: Frequent Contributor
timestamp: January 13, 2015, 02:40:59 am
content: Hello Folks!On and off for the past weeks i am thinking about building something, after some search i have come up with the Chips i would need but they are on the pricey side.The DS2764 LiPo gas gauge and protection IC is a dream but it is very expensive.Same with the LTC3532 Buck/Boost converter.The idea is a "smart LiPo battery" for current and future projects, there would be about 5 units for a start i think.LiPo + protection + I2C fuel gauge + charging + regulated voltage output at 3.3V with with 500mA and maybe optional/additional 5V-12V at very low power.The 3.3V should be stable and efficient at 1mA-5mA load and the regulator should not need much power itself.The "problem" is, i only want and can solder packages with leads, i refuse (for now and the foreseeable future) to upgrade to hot air and solder paste + stencils.SSOP, TSOP, MSOP, SO and so forh are no problem but BGA, DFN and the like... no way.Allmost everything i found and liked was in a package i can not solder... the other chips are very expensive.And yes, i know what a sample is and how i get one. But i do not like to "abuse" the system...Greetings,Peter
PDIP u with 2 SPI board. - Page 1
Forum section: electronics / general

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 05:35:06 pm
content: So I'm design somethingh modular so I have a couple of boards and I think about have a spi bus to command each board.I want a pic on each board. Send command via the SPI and than on each board a micro to perform the board control.So at the end I need to found a u that have two SPI port in PDIP format with as less pin as possible.For me is the same PIC or at mega.Any one have some suggestion?

author: bobcat
author_rank: Regular Contributor
timestamp: January 10, 2015, 05:45:24 pm
content: Why not use 4 wire SPI and use slave selects for each board. Just use 1 spi on master.

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 05:52:06 pm
content: I can also do that but I need for, example in one board, to use some dacs and monitor some other voltages so I prefer have MCU to control each board.I basicly redesign somethingh that I have arleady made using your aproach.

author: Brutte
author_rank: Frequent Contributor
timestamp: January 10, 2015, 05:54:01 pm
content: Quote from: vaualbus on January 10, 2015, 05:35:06 pmIn such case ATMega1284 with 32 pins removed is a perfect choice.That leaves 8 pins: two for power and 6 for two SPI units..If you can cope with unidirectional SPI and sharing clocks with one IO, I think you could go a little bit lower..

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 06:01:56 pm
content: Thanks I was already looking at atmega but cannot find that part. Thanks.

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 07:18:04 pm
content: Anybody know some PIC part?

author: dannyf
author_rank: Super Contributor
timestamp: January 10, 2015, 07:47:08 pm
content: QuoteWhat's a "u" and why do you need two spi ports?

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 08:07:18 pm
content: microcontroller.I will have the micro wired to the spi port than it will controll a dac and do other thinghs

author: Christopher
author_rank: Frequent Contributor
timestamp: January 10, 2015, 08:35:58 pm
content: Usinghttp://www.microchip.com/maps/microcontroller.aspxI came up with the following:But i'm sure the same thing could be done with software spi?

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 08:43:34 pm
content: thanks

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: January 10, 2015, 09:06:43 pm
content: PIC24FJ64GA002, PIC32MX150F128B - both 28 PDIP

author: vaualbus
author_rank: Frequent Contributor
timestamp: January 10, 2015, 09:47:44 pm
content: Thanks
LPC4370 - any way to protect firmware? - Page 1
Forum section: electronics / general

author: splin
author_rank: Frequent Contributor
timestamp: January 26, 2015, 01:22:39 pm
content: As this is a ROMless part the firmware is open to being copied and reverse engineered from the external SPI flash device. The user manual talks about AES encrypted boot mode but this feature is only available on 43Sxx devices - of which the only ones available seem to be the 43S20, 43S30 and 43S50.Is this right? This seems to be such a major shortcoming of the LPC4370 that I feel I must be missing something?I noticed that Digikey will no longer be stocking the 100 pin version when stocks are exhausted - is this a worry, a sign that the part wasn't popular and vulnerable to being obsoleted? Perhaps even to be replaced by a non-BGA version with built in Flash?Splin
SystemVerilog - handling multiple interfaces as an array - how to write - Page 1
Forum section: electronics / general

author: daqq
author_rank: Super Contributor
timestamp: January 01, 2015, 06:02:32 pm
content: Hi guys,Is there any way to write this:Code:module SimpleBusExpander(input Clock,input ResetN,Interface_SimpleBus.Slave BusIn,Interface_SimpleBus.Master BusOut0,Interface_SimpleBus.Master BusOut1,Interface_SimpleBus.Master BusOut2,...Interface_SimpleBus.Master BusOut15);into something likeCode:module SimpleBusExpander(input Clock,input ResetN,Interface_SimpleBus.Slave BusIn,Interface_SimpleBus.Master BusOutArray[15:0]);?I've tried some variations, but they all end up with all sorts of compilation errors. My goal is to be able to do something like this:Code:assign BusIn.ReadData = BusOut[BusIn.Address[19:16]].ReadData;assign BusIn.Acknowledge = BusOut[BusIn.Address[19:16]].Acknowledge;assign BusIn.Error = BusOut[BusIn.Address[19:16]].Error;without a million repeating lines of code.Thanks,David

author: mrflibble
author_rank: Super Contributor
timestamp: January 03, 2015, 06:23:32 pm
content: Is this for verification only, or also for synthesis? If synthesis, what tool are you using?If this was for Xilinx I know I would be explicitely checking if this is supported. Because yes Xilinx tools support interfaces for synthesis (and Altera as well AFAIK), but I would not count on them implementing the full spec without double checking things. The best sanity check for"Is this valid SystemVerilog?"is usually to read the LRM or to run it through Modelsim. Modelsim adheres pretty closely to the standard in my (admittedly limited) experience. With Xilinx it's a crapshoot, and for Altera I hear it's a little better but not by much.You could make Interface_SimpleBus a parameterized interface, complete with the modport you already have. The parameter would be the array size. Another option would be to try a non-ansi port declaration, and see if the synthesis vendor du jour did implement interface arrays for that.Worst case you could use agenerateblock to do something similar to thoseassignstatements, but that is just stupid. If that is the only thing that works it is still better than 256assignstatements, but there really should be something better that is supported by synthesis tools.Based on other implemented featured (for Xilinx) I'd give the parameterized interface a reasonable chance of success, but only one way to find out.

author: daqq
author_rank: Super Contributor
timestamp: January 03, 2015, 08:31:53 pm
content: Thanks for the suggestions. The generate command seems workable, I'll try fiddling with that - based on your description, seems safer.Yes, this is for synthesis as well and I'm using Xilinx Vivado tools, for the Zynq 7000 device.Thanks,David

author: mrflibble
author_rank: Super Contributor
timestamp: January 04, 2015, 02:04:02 am
content: I just checked the LRM and Ithinkthat the port syntax you tried to use is illegal. But the non-ansi syntax as suggested earlier is legal. Anyways,generateis bound to work. A bit of a blunt instrument, but if it works for you who cares.
Switchable TMDS Terminations - Page 1
Forum section: electronics / general

author: PetAd
author_rank: Newbie
timestamp: January 02, 2015, 06:02:48 pm
content: Hello everyone,I'm designing a dev. board with a Spartan 6 FPGA and I want to use the same pins for receive and transmit. Because the receivers need an off-chip 50Ohm termination to +3V3, and if I use the same pins for input and output, I need to make it switchable. I placed two 0402 size resistor arrays to the bottom side of the FPGA (TQFP-144) with short stubs. Can I use a small P MOSFET for switch right next to the resistors?
blender - Page 1
Forum section: electronics / general

author: kjn4685
author_rank: Regular Contributor
timestamp: December 31, 2014, 04:43:18 am
content: I been a program for a gear blender CD . I need to import it

author: Mysion
author_rank: Regular Contributor
timestamp: December 31, 2014, 07:54:03 am
content: What you wrote doesn't make much sense..Could you explain your question in detail?

author: kjn4685
author_rank: Regular Contributor
timestamp: December 31, 2014, 06:27:34 pm
content: I am sorry I mean has anyone drawn a gear in blender. I need a gear about 2inches in diameter. Again I am sorry.

author: Skimask
author_rank: Super Contributor
timestamp: December 31, 2014, 06:35:33 pm
content: Internal?External?Spur?Helical?Double-helical?Bevel?Spiral bevel?Hypoid?Crown?Worm?Non-circular?Rack-and-pinion?Epicyclic?Sun/Planet?Harmonic?Cage?Circular pitch?Circular thickness?Face width?Chordal pitch?Face land width?Root circle?Base circle?Pitch circle?Outer diameter?Or maybe you need hunting gear?Or rock climbing gear?Or SCUBA diving gear?Or some sports gear?Or safety gear?http://en.wikipedia.org/wiki/GearNow you know...

author: miguelvp
author_rank: Super Contributor
timestamp: December 31, 2014, 06:40:52 pm
content: Google "blender gear design" tons of hits.Otherwise there are extensions for sketchup but then you'll have to export it and import it in blender.For that google "sketchup gear design" tons off hits as well.
Numato Board Giveaway - Page 1
Forum section: electronics / general

author: BigguyCT
author_rank: Newbie
timestamp: January 02, 2015, 04:28:36 am
content: Saw this today and thought I'd share this with the eevblog community!If you share this post:http://numato.cc/content/mega-new-year-give-away-2015-grab-your-surprise-giftAnd follow the instructions in the post, Numato will send you a free board. Hope that you will all enjoy this and share it with your friends.PS I am not really sure where to post this but this seems correct in my opinion, I am new on the forum but not to the show.Happy Holidays!
Bit banged bus under rtos environment - Page 1
Forum section: electronics / general

author: baoshi
author_rank: Regular Contributor
timestamp: December 31, 2014, 03:17:52 pm
content: In a recent project I'm working on a bit-banged I2C master implementation. The target is ESP8266 with FreeRTOS SDK.I fully understand if I'm emulating asynchronised protocol such as UART, I need to protect each send/receive procedure using task_enterCRITICAL and task_exitCRITICAL to avoid timing disturbance.But for I2C, I assume context switching in-between sending/receiving is not a big issue since communication is synchronised.My limited test also shows no problem if I do not put in protection.Just want to understand if it is best practice to protect send/receive procedures for bit-banged synchronised protocol.ThanksBaoshi

author: Jeroen3
author_rank: Super Contributor
timestamp: December 31, 2014, 03:54:37 pm
content: That entirely depends on the speed of the bus you'll be bit banging vs the core clock.If you can only fit a few hundred clocks between each gpio level change, you'll have the least jitter when using kernel locking. At the cost of lost time.However, if you can fit a few thousand clocks between gpio level changes, you'll be happy running it on an interrupt. Without the lost time you'd have on kernel locking.If you want to run it on a soft interrupt (event handler) you must take the handler jitter into account.Take into consideration that operating systems typically run the kernel ticks on milliseconds range.I'd suggest using an interrupt, make it run your baudrate, give it some output buffer, some input buffer and some flags. Wait for it to complete the shifting action, then process your data with a high-ish priority task. The advantage of interrupts is that there is consistent jitter if you set the priorities right and don't make them too long.Hard real time is key.http://en.wikipedia.org/wiki/Real-time_computing
Simulating Arduino circuits? - Page 1
Forum section: electronics / general

author: dentaku
author_rank: Frequent Contributor
timestamp: December 28, 2014, 01:35:45 am
content: Proteus/Isis has an Arduino emulator (hardly beginner stuff)VBB Virtual Breadboard has an Arduino simulator and it looks nice but it's not free (still very reasonable priced).Virtronics - Simulator for Arduino could possibly be useful but limited and seems to be unstable.Question: Is there anything else out there that is good for simulating Arduino circuits?

author: dannyf
author_rank: Super Contributor
timestamp: December 28, 2014, 03:10:26 am
content: Anything that can simulate an AVR can simulate Arduino.
A bit of high tech classroom prank :) - Page 1
Forum section: electronics / general

author: janoc
author_rank: Super Contributor
timestamp: December 25, 2014, 06:31:52 pm
content: http://ultrakeet.com.au/write-ups/microcontrollers-not-allowedLove the ideaMerry Christmas!

author: T3sl4co1l
author_rank: Super Contributor
timestamp: December 25, 2014, 07:00:49 pm
content: Nice

author: Mechatrommer
author_rank: Super Contributor
timestamp: December 25, 2014, 07:37:25 pm
content: in school teachers should teach their students on how and why one should not waste time and money, try to keep up being productive to humanity because... life is too short to waste.

author: Howardlong
author_rank: Super Contributor
timestamp: December 26, 2014, 09:55:33 am
content: Very very nice. I remember well doing 555s, 7447s, 7490s, 7493s, 7 segments etc aged 11 (no LS in those days).I note one fundamental flaw though, the 6, 7 and 9 are not what a 7447 generates ;-)
Intel Edison? - Page 1
Forum section: electronics / general

author: Aodhan145
author_rank: Frequent Contributor
timestamp: December 17, 2014, 11:44:19 pm
content: I am working on a project at the minute where I require a host capable of running linux, a php web server, C# mono code, has a SPI interface and also needs wifi and bluetooth capability. I was thinking of using the Intel Edison to achieve this. Is the Edison the best option here or is there any others? Has anyone had first hand experience with them? Thanks in advance.

author: pyrohaz
author_rank: Regular Contributor
timestamp: December 18, 2014, 12:08:00 am
content: After using the Intel Galileo board, I have been forever turned against any Intel dev boards. The GPIO was immensely slow thanks to the whole GPIO being ran off a I2C GPIO expander.I don't have high hopes for any other their other stuff... If you're looking for a really good Linux open source dev board, I'd definitely recommend the Olimex series of OLinuxIno board e.g.https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME/There is a great wealth of internet help for the Olimex boards and they have a nice blog and wiki supporting most of their boards. WRT to C#, as long as it works on RISC architectures (which I'm sure it will!).Olimex offer their own tested WiFi and Bluetooth additions which work with their boards and the board I linked above has integrated ethernet.Hope this helps!

author: miguelvp
author_rank: Super Contributor
timestamp: December 18, 2014, 12:12:58 am
content: To be fair they do have a Gen 2 of the Galileo, but I didn't purchase the 2nd one and the 1st Gen Galileo is just gathering dust.But it still has other peripherals other than GPIOs including PCI Express.Edison is just too rich for me to just play around.

author: pyrohaz
author_rank: Regular Contributor
timestamp: December 18, 2014, 12:45:41 am
content: Quote from: miguelvp on December 18, 2014, 12:12:58 amYou have a very good point there, I just tried to use it for standard "arduino" functionality, PWM, flashing LED's that kind of stuff. I was only evaluating it for my university anyway so I didn't actually get very long to try anything cool!

author: Rasz
author_rank: Super Contributor
timestamp: December 18, 2014, 03:32:26 pm
content: its garbage, get one of chinese/korean arm dev boards

author: Aodhan145
author_rank: Frequent Contributor
timestamp: December 18, 2014, 06:51:16 pm
content: Thanks pyrohaz, I'm currently looking in to the olimex boards. They are great for the price. I'm especially surprised about the SATA connector.

author: hans12
author_rank: Newbie
timestamp: December 23, 2014, 09:12:37 pm
content: Would a rasperry pi be of any use for you? Combined with a wifi/bt usb stick I think you can do with it all you want if it is not too computing heavy .
Can the atmel ICE stand having LED's on the same pins - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: December 21, 2014, 10:24:02 pm
content: Having blown an AVRISP2 by connecting it to pins with LED's on I'm wondering if the new atmel ICE has the same vulnerability ?

author: Simon
author_rank: Unknown
timestamp: December 22, 2014, 01:21:32 pm
content: Well all available IO's had LED's with resistors and that programmer never worked again.

author: Simon
author_rank: Unknown
timestamp: December 23, 2014, 09:34:53 am
content: 5V, no noise no smoke, just never worked again.

author: Simon
author_rank: Unknown
timestamp: December 23, 2014, 03:29:53 pm
content: Well it's binned now and I'm using an ICE.
ADNS3080, opticalflow sensor, motion? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2014, 04:42:47 pm
content: hi guysi am toying withADNS3080, this chip is typically used for optical mouse sensors, but it is based on a new faster architecture with improved navigation: the sensor is capable of sensing high speed mouse motion - up to 40 inches per second and acceleration up to 15g – for increased user precision and smoothness, the sensor is based on Optical Navigation Technol- ogy, which measures changes in position by optically acquiring sequential surface images (frames) and math- ematically determining the direction and magnitude of movement, and for such a reason has been also used in quad-rotors to provide more information to the fusion algorithm.The sensor is programmed via registers through a four-wire serial port (SPI). It is packaged in a 20-pin staggered dual inline package (DIP), and sold already soldered on a breakout with plastic (and removable) lens, which makes it very nice to be interfaced with arduino or MPUs.And here we go: i am toying with the sensor, i am able to acquire a raw image (30x30pixel), but i am having difficulties to get the motion-engine to work.a, arduino libraries seem to be brokenAnybody toying with it ? any working code for the motion-engine ?

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2014, 04:48:11 pm
content: ADNS3080 Optical Flow SensorShort features description:ADNS3080 goes for optical mouse technology30 x 30 pixel frames2000 to 6400 frames per second update rate which contributes to better low light performance than other mouse sensorsSPI interface, tntended to interface with a 5v microcontroller8mm lens with 11 deg FOVstandard M12x0.5 lens mount meaning you can replace the lens easily if required

author: legacy
author_rank: Super Contributor
timestamp: December 19, 2014, 07:08:41 pm
content: thisis a gcode project used in arducopterunfortunately the motion is broken, too

author: legacy
author_rank: Super Contributor
timestamp: December 20, 2014, 10:16:17 am
content: has anybody worked with this chip ?

author: legacy
author_rank: Super Contributor
timestamp: December 23, 2014, 02:42:13 pm
content: i have been toying withtsl201r, + lens, which seems better for optical flow
Arduino Mega bootloader issue - Page 1
Forum section: electronics / general

author: Leopoldo
author_rank: Contributor
timestamp: December 22, 2014, 04:05:33 pm
content: Hi to everyone,I've just burnt the bootloader on my arduino mega 2560 to make it suitable to program an ATtiny85,and now that I did it I don't know how to re-burn the original arduino mega bootloader!!! I can't understand if it self-resets to the old bootloader or if I have to do it manually....please,don't tell me I need an external ICSP board to upload it...!

author: igendel
author_rank: Frequent Contributor
timestamp: December 22, 2014, 04:58:58 pm
content: Did you actually burn a new bootloader? That shouldn't be necessary for using the Mega as a programmer for ATtinys... and if you did it, you must have done it with some external programmer anyway. The Arduino IDE has a default bootloader you can use in case of need (Tools->Burn bootloader).
Framework / Pattern for building menus? - Page 1
Forum section: electronics / general

author: miceuz
author_rank: Frequent Contributor
timestamp: December 29, 2014, 05:53:53 pm
content: I have UP, DOWN, ENTER, CANCEL buttons, an 8*2 character LCD and a fairly big menu tree. Menu tree consists of three level deep branches with leaves of several kinds - choose a value from a list, enter integer value between some thresholds and a couple of specific ones. All menu does is basically setting a bunch of variables.Does anyone have a suggestion for a pattern to use for such a system in an small micro embedded environment?

author: tymm
author_rank: Contributor
timestamp: December 29, 2014, 06:18:28 pm
content: Hi,You can get some ideas poking through the projects at avrfreaks.net -- years ago i uploaded "tinymenu" which is a framework for doing this kind of thing. I believe Dean, the guy behind LUFA, also uploaded a (likely better) menuing system there too.Wouldn't surprise me if there are Arduino menuing code bases out there too that - depending on your project - you may be either able to use directly or read through for reference.my approach had an array of menus, each with an array of menu items. Each menu item held text to display + a callback function to use when the item was selected.

author: miceuz
author_rank: Frequent Contributor
timestamp: December 29, 2014, 06:44:13 pm
content: I had an idea about having structs in a linked list with callback functions for all buttons, there is only a polymorphism question for leaves, I don't particulary like doing polymorphism in C.

author: miceuz
author_rank: Frequent Contributor
timestamp: December 30, 2014, 11:51:19 am
content: Ok, for reference for future generations:MicroMenu by Deanhttps://github.com/abcminiuser/micromenu-v2TinyMenuhttp://www.avrfreaks.net/projects/tinymenuMicroMenu is almost what I need, I'll got from there.
Reading a PIC16LF88 - Page 1
Forum section: electronics / general

author: HooRide
author_rank: Regular Contributor
timestamp: December 18, 2014, 11:05:13 pm
content: I'm toying around with my new Minipro TL866CS and popped in a PIC16LF88 from a device I own to experiment reading the data off of it.It comes out as all zeros, does this mean I'm doing something wrong or is there a copy protection scheme in place?Thanks!

author: dannyf
author_rank: Super Contributor
timestamp: December 19, 2014, 01:44:24 am
content: QuoteWhat does the programmer's manual say about it?

author: hexreader
author_rank: Frequent Contributor
timestamp: December 19, 2014, 06:49:22 am
content: All zeros would be consistent with copy protection turned on.If the PIC came from a commercial device, then it will almost certainly be copy protected

author: HooRide
author_rank: Regular Contributor
timestamp: December 20, 2014, 11:49:30 pm
content: Quote from: hexreader on December 19, 2014, 06:49:22 amThank you; that is what I expected. It's not exactly a commercial device and was hopeful they didn't lock it down.
STM32L05 interrupt problem - Page 1
Forum section: electronics / general

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: December 20, 2014, 01:23:37 pm
content: Hi,So am using PC13 PC14 and PC15 as switch input configured with falling interrupt , the bizarre thing is when i only set one of them as interrupt input it work, when i set 2 or more it stuck in the interrupt routine,I checked with the debugger that if for example PC15 and PC14 are in interrupt configuration EXTI 14 flag is always set, if PC15 and PC14 and PC13 are configured , EXTI14 and 13 flag are always set, made me insaneit happen that PC14 and PC15 are also OSC-IN but the ds said that they can be used as a simple I/O as well, the proof they work individually but not all of them .. am lost , Help

author: hamdi.tn
author_rank: Frequent Contributor
timestamp: December 20, 2014, 02:34:47 pm
content: SolvedFor those who may get stuck on this too , for a reason i don't understand the HAL library is not writing the SYSCFG_EXTI register, i configured the interrupt with direct addressing not with library functions ... it work now
rgb + composite sync aka rgb-s, looking for documentation - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 24, 2014, 02:34:06 am
content: hi guysi am planning to interface an RGB-S monitor like the SONY PSone-LCD to an fpga in order to emulate a game-console.I have google a lot without finding useful information about the timing, the polarity, and such a stuff about RGB-sany one has documentation about it ?basically i already have an fpga with a working VGA interface, and i am also considering to build up an adapter like thisvga 2 rgb-slet me know, thanks

author: legacy
author_rank: Super Contributor
timestamp: November 24, 2014, 02:36:47 am
content: SONY PSone-lcdthat is the LCD i am planning to interface to

author: Rasz
author_rank: Super Contributor
timestamp: November 26, 2014, 12:44:19 pm
content: its standard pal/ntsc timings

author: legacy
author_rank: Super Contributor
timestamp: December 13, 2014, 01:46:19 pm
content: what is the reason of the xor port (and its RC cell) in the schematic above ?

author: Rasz
author_rank: Super Contributor
timestamp: December 13, 2014, 03:55:25 pm
content: http://retrorgb.com/csync.html

author: legacy
author_rank: Super Contributor
timestamp: December 13, 2014, 05:22:59 pm
content: the link is about how to mod a console, i need information about the PAL timing, i need documentation in order to implement something in fpga to directly interface an RGB-S LCDalso, anybody know why in this schema there are xor gates + RC ? it's not clear to me

author: Rasz
author_rank: Super Contributor
timestamp: December 14, 2014, 07:25:09 am
content: you asked about composite sync, so I linked you more info, this circuit adds both signalshttps://en.wikipedia.org/wiki/Component_video_syncpal timing is just pal timing, same as in composite video signalhttp://martin.hinner.info/vga/pal.html

author: westfw
author_rank: Super Contributor
timestamp: December 16, 2014, 09:52:23 am
content: http://www-inst.eecs.berkeley.edu/~cs150/sp99/sp99/project/compvideo.htmComposite sync is a combination of horizontal sync (short, frequent pulses) and vertical sync (much less frequent, much longer pulses.) HSYNC pulses still occur during the VSYNC, and are inverted wrt the current state of the combined sync.Aside from getting things to the appropriate polarity, and apparently some pulse shaping/limiting, that's what the XOR in the diagram is doing.
sim900A dosent work after update - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: December 10, 2014, 07:45:55 pm
content: hi dear friendsi have sim900a worked fine,i need NTP & flash & midi applications that dose not support my last frimware,therefor i give latest frimware with this functions from simcom support & download its frimware.module's frimware update succesfully but after it ,it dosent workwhen i turn it on only a few weird character send (fewer than usuall ) i test all baudrate ,& even try to change baudrate but it dosnt work.has any body any suggestion?best regards
MSP430 Serial Terminal in Paralell Out - Page 1
Forum section: electronics / general

author: Simon123
author_rank: Regular Contributor
timestamp: December 09, 2014, 07:27:55 pm
content: Serial data terminal to binary value on output.Hello!I have to program a MSP430 board (g2432).Its function should be to input decimal value on serial terminal, and get digital (8-bit should be ok) value on output.I already need 2 analog pins for voltage measurment, but there are still some digital pins left.On that paralell output i will put R 2R resistor ladder which wil create a simple DAC.I kinda get stuck at software for this thing.I am using energia for programming since i already have that voltage readout written in it.Could someone help me with some examples or something?And how should i use digital pins on that chip? Analog pins are marked A1,A2 ... But i dont know about digital ones. I already triedB1 ... ofc it doesnt work. Is D1 ... proper way to do it?Thanks for any help!

author: suicidaleggroll
author_rank: Super Contributor
timestamp: December 09, 2014, 07:52:25 pm
content: All pins on an MSP430 are accessed through their respective ports, P1, P2, etc. Each port is 8 bits wide, which correspond to P1.0-1.7, etc. You access them by accessing the corresponding register. To read from port 1 you would read P1IN. If you want to read from a specific pin on port 1, you would AND it with the bit you want, eg: P1IN&BIT2. To write to a port you use P1OUT, to change the direction (input to output or vice versa) you use P1DIR, to change the mode you use P1SEL and P1SEL2, and so on.I don't believe the G2432 has a UART port, so how will you be sending data serially? I2C? SPI? You could bit-bang a UART using some GPIOs if necessary, there are guides online for doing that as well.You should probably start with some simple LED blinking until you get a hand for the clock management system and GPIO interfacing.

author: Simon123
author_rank: Regular Contributor
timestamp: December 09, 2014, 08:01:55 pm
content: It has 2 uart pins and i have it connected to Launchpad thingie.I was thinking something like that:http://bildr.org/2011/01/arduino-serial/

author: suicidaleggroll
author_rank: Super Contributor
timestamp: December 09, 2014, 08:52:46 pm
content: Quote from: Simon123 on December 09, 2014, 08:01:55 pmNo, it really doesn't.http://www.ti.com/product/msp430g2432Code:MSP430G2432Freq 16Flash 8FRAM 0SRAM 0.25GPIO 16I2C 1SPI 1UART 0DMA 0ADC 8etc.Are you sure you're looking at the G2432?
2mm spacing stripboard/prototype boards available? - Page 1
Forum section: electronics / general

author: splin
author_rank: Frequent Contributor
timestamp: December 08, 2014, 03:38:13 pm
content: A lot of modules, such as the dirt-cheap ESP2866 based WI-FI modules I just bought have 2mm spacing. Can you get stripboard or prototype boards with the same spacing to make it a bit easier to prototype?Or perhaps 2mm to .1" adapter boards suitable for a range of modules with differing widths and number of pins (within reason!)Does anyone know why they have those 'castellated' edges for the connections rather than the plated through holes that you usually get on Arduino type modules with .1" spacing? Is it to minimise the size?TIA

author: zapta
author_rank: Super Contributor
timestamp: December 08, 2014, 03:44:52 pm
content: Have you tried google search? It gives hits like this onehttp://www.digikey.com/product-search/en/prototyping-products/prototype-boards-perforatedThe holes are cut so you can solder it directly to a board, SMT like.

author: splin
author_rank: Frequent Contributor
timestamp: December 09, 2014, 01:24:28 am
content: Doh thanks! In my defence, being a cheapskate I was searching unsucessfully on Ebay. I did try searching the distributers but it can be very difficult to find some things navigating through their websites.Still, those 2mm pitch 'plugboards' are very expensive at $14 for a 4" x 6" board - especially when you add on shipping and the DHL rippoff handling charges.

author: ovnr
author_rank: Frequent Contributor
timestamp: December 09, 2014, 02:06:54 am
content: Consider just whipping up your own!Elecrow only charges $15 for 10 pcs of 10x10cm boards (green soldermask only). They're decent quality too.Plus you can add a section for 2.54mm parts, SMD parts, what have you.

author: janoc
author_rank: Super Contributor
timestamp: December 09, 2014, 07:08:42 pm
content: Seeed studio has some too - I have bought some by mistake and then was left scratching my head why the normal 0.1" pin headers don't fit!http://www.seeedstudio.com/depot/ProtoBoard-9cm-15cm-20mm-p-726.html
flir lepton thermal camera - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: November 03, 2014, 09:45:19 pm
content: flir lepton thermal camera breakouthave you seenthis?it's just a breakout, do you know where to buy one sensor ?or do you want to buy one of these sensor ? be tunedyou can seehereinteresting videos about

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: November 05, 2014, 10:05:22 pm
content: More info herehttp://www.pureengineering.com/projects/lepton

author: Fraser
author_rank: Super Contributor
timestamp: December 08, 2014, 11:49:35 am
content: Newsletter on LEPTON from FLIR:http://cvs.flir.com/webmail/6132/582294369/392afc20347a08c88115a301559fa4ae

author: legacy
author_rank: Super Contributor
timestamp: December 08, 2014, 01:48:34 pm
content: thank U

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: December 08, 2014, 02:02:40 pm
content: Rather surprised to see Flir actively pushing the Groupgets thing - they could easily sell singles and devboards direct themselves but I supposed it's an easy way for them to offload the work.Also complicated now by the multiple versions.
Zynq FPGA application with ADC proposed structure - please critique - Page 1
Forum section: electronics / general

author: daqq
author_rank: Super Contributor
timestamp: December 08, 2014, 01:26:32 pm
content: Hi guys,For a project I will be using a Zynq 7010 device, I would like to ask whether you'd choose this structure:There will be two clock domains - one from the processing system (miscellany board control, a little processing), the other one will be clocked with a high speed ADC clock and will do some fast calculations and acquisitions. In general terms it should work like the simplest triggered scope - when armed and triggered (external logic, internal logic or ADC threshold value), the ADC samples N (~32k) samples into a fast memory, sets a flag somewhere, the processor reads the flag, reads the samples out and does its magic with them.All of the functions should be memory mapped, via the AXI-Lite interface. My proposed base structure ( made out of existing IP) should be:ZYNQ PROCESSING SYSTEM -> AXI to AXI Lite conversion (AXI Protocol converter) -> AXI Crossbar splitter into 2 AXILite bussesBus 1 goes into the miscellany processingBus 2 goes through an AXI Clock converter into the other domainThe transfer of data between the ADC area and the processor itself does not need to be particularly fast, but I want it memory mapped - really awesome feature.What do you think of the proposed base structure? Any refinements?Thank you,David
ARM M3 PWM and PMC settings - Page 1
Forum section: electronics / general

author: tomshirvo
author_rank: Regular Contributor
timestamp: November 14, 2014, 02:26:38 am
content: Hi All,I use the Arduino Due and my next project is big so I am converting everything to work in the Atmel Studio 6.2 software.To be honest I am a bit of a noob but I am trying.I have everything working and can get both the PMC and PWM to output a square wave. I have the PMC working at 40kHz.I have been looking around the internet and I just can't seem to find anything about how to set all the values for the prescaler, pwm clock generator and period.I want to have a period of 255 so my range is like that or the arduino. I have played around with the figures but can't get that 40kHz output.Anyone have any good reading or some sort of calculation for get the desired output frequency?It is a Due so the MCK is 84MHz and that is what I have it set as with "sysclk_get_cpu_hz()"Only using clock a for the PWM as all channels will need to be at 40kHz.

author: BennVenn
author_rank: Regular Contributor
timestamp: December 08, 2014, 12:00:30 am
content: How did you go with your PWM troubles?I work with STM32F103's coded in assembly so quite familiar with the registers required to get your hardware sorted. It is a different MCU but the basics still apply. Send me a message if you still need help

author: dannyf
author_rank: Super Contributor
timestamp: December 08, 2014, 12:06:13 am
content: You probably want to read the device datasheet.
sim900A embedded at applications notes - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: December 07, 2014, 01:41:51 pm
content: hi dear friendsi am trying to design a wireless data logger device based on a simcom sim900a gsm/gprs modem.& eliminating external mcu is very pleasure to me ,then sim900's mcu will do process.as you know simcom used arm926ej arm 9 mcu on sim900 which is absolutely enough for many embedded applications.simcom publish a pdf as "sim900 embedded at applications notes" for reference that i have a bit confused of undrestanding its mind.is there any body here do this past or has any experiences in this?i think we only write tasks for its real time os ?is it true?or for example with at+command i can connect with http to a server on internet & based on get/post requests send & receives datas via sim900's usart port ? but i dont know how can send/received this datas when im not using external mcu(transieve from core mcu to my application)can any one clear me or give me some simple examples?best regards
sniffing SPI with MSP430 do i need high impedance - Page 1
Forum section: electronics / general

author: Apothus
author_rank: Contributor
timestamp: December 09, 2014, 06:33:17 am
content: I am trying to read a blood pressure cuff that has an LCD display. The device itself doesn't have a serial output that I can read directly so instead my plan is to sniff the SPI data from the main IC to the LCD display IC. I have the data sheet for it and I have managed to tap into the signals with both my scope and bus pirate.However whenever i try to connect an arduino or MSP430 they appear to ground all of the lines and stop all activity. Whenever I have used SPI busses before as a master device this has never been a problem however I figure it is something in the way I am configuring these devices as slaves? Am I missing something in my setup with these devices? Do I need som additional IO hardware? should I go as far as buffering the signals before reading them with my MCU?

author: void_error
author_rank: Frequent Contributor
timestamp: December 09, 2014, 01:41:42 pm
content: If the blood pressure meter also has an EEPROM to log data you might want to try sniffing the data between the MCU and EEPROM. I've reverse engineered one a while back and it used I2C to interface to the EEPROM.If it's SPI you might first want to try 'manually' sniffing the data using 'regular' pins on your MSP430/Arduino, not configured as SPI. Connect the SPI clock signal to a MCU pin that supports interrupt-on-change and read the values on the data pins in the interrupt routine. Also make sure you configured the I/Os correctly.