|
Does anyone have experience with the Papilio one? https://www.sparkfun.com/products/11158 Seems like a very arduino-ish design, with support for extension boards and all that. I don't have any experience with FPGAs, so is this a good first choice? Is there anything else out there that you would recommend instead for a similar or lower price point? I don't have a specific application in mind, just interested in experimenting and learning about them. I've seen a couple articles about emulating specific processors with FPGAs, for example some video game systems. Is there any kind of online library of various virtual cpu designs like this? Are FPGA designs generally very portable across makes and models?
|
# ¿ Nov 10, 2012 21:44 |
|
|
# ¿ Apr 27, 2024 14:53 |
|
I meant to post this here originally, but did the wrong thread on accident, so quoting myselfpeepsalot posted:I had a hell of a time figuring out how to get started with MSP430 Launchpad, but after a couple hours of trying various outdated guides, I finally compiled and loaded a LED blink demo using msp430-gcc. So in case anyone else wants to know how to get from 0 to blinkenlights
|
# ¿ Nov 24, 2012 05:25 |
|
OK, so my idea for now is to play around with audio on this msp430 and see how nice of a song i can cram into 16KB. I know i could implement some external storage, but I'm just more interested in testing the limits of what i can do with this chip and not wanting to order more ICs at the moment. I'd like to be able to mix a few channels to play multiple simultaneous notes. I'm just wondering if anyone has suggestions/tip/tricks to do mixing and sequencing on limited cpu like this. This is maybe getting more into general programming and algorithms, but I'm wondering if there are resources for simple models of common instruments, like procedurally generated waveforms that might sound like a guitar string, etc. Also does any kind of demoscene exist for microcontroller stuff like this?
|
# ¿ Nov 24, 2012 08:17 |
|
Base Emitter posted:I'm not super familiar with the msp430, but it does have some nice stuff on it for audio, depending on which variation you've got. So yeah without hardware multiplier I think i'll have to be pretty careful about minimizing calculations. I found a PDF from TI explaining a couple efficient mult/div algorithms which can be implemented on MSP430, so that's nice. http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa329&docCategoryId=1&familyId=911
|
# ¿ Nov 24, 2012 19:42 |
|
Silver Alicorn posted:How about write a polyphonic waveform generator using PWM. Square waves are easy, and you can approximate triangle, sawtooth and sine pretty efficiently using Bresenham line/circle algorithms. I've been planning to do something like this for a while but you could probably beat me to it! Also bass kick, hi-hat, etc. peepsalot fucked around with this message at 22:03 on Nov 24, 2012 |
# ¿ Nov 24, 2012 21:56 |
|
PDP-1 posted:The CORDIC algorithm might be helpful for generating sine waves without a hardware multiplier.
|
# ¿ Nov 25, 2012 00:15 |
|
Regarding general PWM audio generation, I'm trying to work out what sample rate and bit depth I should use. If my clock rate is 16Mhz and I have a 16bit timer to work with, say for example I wanted to try 16bit audio, i would have to use the full length of the timer for my PWM to get the full 65536 possible values out of it. So I would only be capable of 16000000/65536 ~= 244 samples/sec which is not fast enough for audio. So the best compromise I think would be 10bit audio, which would get me 15625 samples/sec and give me up to 1024 cycles to calculate my next sample. Does this make sense? Or is there some other weird old trick i'm not realizing that would let me get higher resolution than that at the same sample rate? This is assuming no external DACs or other ICs. Also, I guess I need to put a low pass filter this to smooth the PWM pulses. I have a small 16 ohm speaker that I plan on using. I don't know what the inductance is, so is it reasonable to model this as just RC filter for a ballpark figure? Using RC equation for cutoff freq Fc = 1/(2piRC), say i want to set it at 10Khz, then the C conveniently comes out to nearly exactly 1uF. Is adding inductance of the coil going to throw this off a ton? Edit: on second thought i'm not sure this makes any sense at all to use the load resistance as the filter resistor. My speaker looks a lot like this guys: https://www.youtube.com/watch?v=5A3bBXRpYCI I think he's using PWM to generate the audio square wave directly, whereas I want to use a much higher PWM to generate individual samples. Anyways, he has no limiting resistor or anything, is this possibly bad for the pins to provide this much current? Do they have some internal protection against shorts? peepsalot fucked around with this message at 03:11 on Nov 25, 2012 |
# ¿ Nov 25, 2012 02:03 |
|
YO MAMA HEAD posted:Does anyone here have any advice for working with PWM audio on the Arduino Uno? I'm trying to make an algorithmic synthesizer (a la http://countercomplex.blogspot.com/2011/10/some-deep-analysis-of-one-line-music.html) and have gotten past the ugly problems of on-the-fly string evaluation and getting sound to come out of the dang thing. I'm having two main problems: I just followed this guy's schematic (using different RC components for higher cutoff) using dual OPA376 opamps (OPA2376 for dual package), stupidly assuming they could power a speaker without looking at the datasheet, but now that i've built, i realized i still need an amp. So I guess I'm ordering lm386 to attach to that output. And then hopefully it will drive this dumb 16 ohm speaker i have. edit: here's my ridiculous opamp filter circuit thing. couldn't get 2376 in dip package. peepsalot fucked around with this message at 08:02 on Nov 30, 2012 |
# ¿ Nov 30, 2012 07:32 |
|
Martytoof posted:Can anyone point to a good tutorial that will help me to understand why/how chaining shift registers together works? It's pretty simple though. You shift in a bit by setting the input line high or low, and then sending a clock pulse. That bit goes into the first place, and the bit that was there gets moved into the next place and so on. The last bit gets discarded if you don't do anything with it. But if you have multiple shift registers, and your chip provides an output for this last bit, then you can just hook that to the input of your next register. You feed all the chips the same clock signal and that lets the data just overflow into as many registers as you like.
|
# ¿ Dec 3, 2012 07:17 |
|
what's my best bet for some dead simple data storage to interface with msp430, on the order of a couple mega bytes of data?
|
# ¿ Dec 7, 2012 23:46 |
|
Man, that teensy 3 looks really nice after messing with msp430 launchpad these past few weeks. It has as much RAM as I have flash memory on this stupid thing. 512B RAM makes it the biggest pain in the rear end to try to read from SD card, especially since I can't find a non-SDHC card, and you can't do a partial read on a SDHC card. You have to read 512B at a time, and throw away half or more of the data since it won't fit. I think I might have to try playing with that next after I wrap up my current project.
|
# ¿ Dec 10, 2012 05:18 |
|
Martytoof posted:If I wanted to have my uC produce a lifelike sound instead of a harsh "BEEP" through a standard piezo speaker, what would be the best/simplest/cheapest way to implement something like that?
|
# ¿ Dec 13, 2012 21:58 |
|
Did anyone here get in on the FreeSoC Kickstarter? It was funded a few months ago but I missed it. Actually I think I saw a link to it during the campaign, but didn't actually understand what it was at that point and just groaned about there being another arduino clone. This thing looks pretty drat cool though. Basically this Cypress PSoC chip that it's based around has a bunch of super configurable peripherals where you can chain together all these things like analog mux, opamp buffers, DACs, etc, just from their snazzy free(of cost) dev tools. So you can customize the chip for whatever purpose you want. I think I'm gonna have to pre-order one from their store even though the kickstarter rewards aren't scheduled to ship till Jan. Tech Specs posted:CPU
|
# ¿ Dec 18, 2012 22:27 |
|
movax posted:Totally missed it, but it does look pretty slick, and I think it'll be fine for hobbyist/etc use. The configurable blocks are pretty slick; need a ton of PWM for motor control? No problem! gently caress ton of SPI/I2C for weird reasons? Still good! I'm kinda dreaming right now of turning one of these into a automotive engine controller.
|
# ¿ Dec 18, 2012 22:42 |
|
Martytoof posted:Mine did too, I just don't like having a ton of different cables lying around. All my other dev boards use mini usb (aside from the Arduino obviously) and I like just having one cable I need plugged in for development I've got the opposite problem. All my phones for the past few years have been micro usb so I've collected a bunch of those cables, and the mini usb cables are the odd ones i can never find. So I got a bunch of mini to micro adapters to plug on the ends of all my micro cables. Saves having an extra cable in my geek bag when traveling, etc.
|
# ¿ Dec 19, 2012 01:35 |
|
Somethin weird goin on, where my User CP is showing that there is one new post in this thread by Martyoof, but no matter how many times I click the thread it never shows the new post. Maybe this post will fix it? e: Yeah it made it show up, weird.
|
# ¿ Dec 19, 2012 21:46 |
|
The MSP430 assembly instruction set definitely has opcodes for byte operations. I'm pretty sure the byte and word variations of these instructions all take the same number of clock cycles. You can check out the instruction set in the MSP430X2XX Family user guide (the chip family that comes with the launchpad).
|
# ¿ Jan 21, 2013 00:30 |
|
Anyone used the TI capsense library for msp430? http://www.ti.com/tool/capsenselibrary Every time I try to read the documentation for this thing I just end up more confused than when I started. I'm trying to mash together one of the examples included with the capsense library with this hardwrae uart example, but they are designed for different clock rates. And I'm thoroughly confused about how any of these clocks are being used. For now I'm just trying to limit to pinOsc, since that requires no extra components. The explanation of the fastRO vs RO in the docs didn't make any sense to me. I can't tell what are the practical applications, pros/cons of any of these thousands of different ways to set up this capsense poo poo. In structure.h there are some constants that you are supposed to comment/uncomment I guess, and then CTS_Layer and CTS_HAL check if they are defined, and sets up things differently depending on what is there: #define RO_PINOSC_TA0_WDTp 65 //#define RO_PINOSC_TA0 66 So the first one uses TA0 and the watchdog timer for something, but the second one only needs TA0? Why?
|
# ¿ Jan 29, 2013 06:23 |
|
Arcsech posted:At 0V-5V, 8-bit, and 10Hz, your easiest cheap solution is probably to just buy an Arduino and have it send the ADC reading over serial 10 times per second. https://www.dataq.com/products/startkit/di145.html
|
# ¿ Mar 25, 2013 21:47 |
|
Rocko Bonaparte posted:My wife was thinking of making a googly-eyed wreath for Halloween. I was wondering if there was something I could to make the eyes move and track something. This would be a lot of eyes on a wreath, so I don't think I could really control each one individually--unless we're talking like 10 servos for a buck or something. Can anybody think of any tricks? Use a ferrous material for the pupils, have a ring of high powered electromagnets around the perimeter to control their gaze
|
# ¿ Sep 25, 2014 21:48 |
|
Stick a diode on the solar cell so it can only charge and not discharge your battery.
|
# ¿ Jan 12, 2015 07:41 |
|
I'm also working on a USB related project and had not heard of Microsoft message analyzer before, so I thought I would give it a shot. I'm trying to follow the first video on this page: https://msdn.microsoft.com/en-us/library/windows/hardware/dn741264%28v=vs.85%29.aspx I'm on windows 7, and the interface looks a little different from the video. There is no "Capture / Trace" "tab" as mentioned in the video so that's where I'm currently stuck. Am I losing my mind or is this the most incomprehensible UI produced by microsoft to date? e: Well I eventually was able to start a USB trace, but none of the devices I try plugging in show up in the log Is there something special I need to do to capture enumeration events? I only see these two devices VID/PID (I'm grouping by UsbDevice in the Analysis grid view to try to see them) VID:8087 PID:8008 VID:8087 PID:8000 Which I think are intel hubs that are built into the motherboard. peepsalot fucked around with this message at 21:45 on May 8, 2015 |
# ¿ May 8, 2015 16:58 |
|
TI's MSP430 series has a lot of low power options. http://www.ti.com/lsds/ti/microcontrollers_16-bit_32-bit/msp/products.page
|
# ¿ Sep 21, 2015 21:06 |
|
I've got a wackass embedded linux system that is logging all kinds of stuff with syslogd, which is provided through busybox. It has a line limit of 256 characters which I'm running up against. I am wondering if that limit is configurable in some way. This is the most information I've been able to get out of busybox: code:
|
# ¿ Jun 30, 2016 23:07 |
|
I frequently ssh into an arm system which is on my LAN, and between giving command "ssh user@ip" and seeing the password prompt is about 30s. Once logged in, the connection feels reasonably responsive, its just really annoying to wait that long for a password prompt. /proc/cpuinfo for reference quote:Processor : ARMv7 Processor rev 2 (v7l) On the other hand, I have another arm system (beaglebone black) that I also sometimes ssh into, on the same LAN, from the same client, and I see the password prompt in 1s or less. Here is it's cpuinfo quote:processor : 0 Why would these two perform vaslty differently for that initial ssh connection? Any ideas if there is some config I can change to make this not take ages to initiate ssh connections?
|
# ¿ Oct 9, 2016 20:36 |
|
ok I ran ssh -v on the slow system, and this is what it output:code:
And another 10s on the line "expecting SSH2_MSG_KEXDH_REPLY" I mean, these messages are coming from the ssh client, and the problem is presumably with the server, so I'm not sure how useful that is. Seems like its just waiting for dropbear to do things and its taking forever. I don't know if I can get any verbose logging from dropbear. It logs a minimum of messages to syslog but nothing that indicates the reason for the pause. In comparison, the beaglebone uses openssh server, not dropbear, and I also noticed it does ECDSA while the slow system does the RSA key. peepsalot fucked around with this message at 01:03 on Oct 10, 2016 |
# ¿ Oct 10, 2016 00:49 |
|
ShoulderDaemon posted:This is almost certainly slow or broken DNS on the server. Its "expecting SSH2_MSG_KEXDH_REPLY" Also I don't know how to test the reverse DNS lookup from the ssh server. There are no dig or host commands.
|
# ¿ Oct 10, 2016 01:08 |
|
ShoulderDaemon posted:DNS still plausible. Might also still be keysize related. I'd probably attack the DNS angle first before bothering with further investigation. What I have is a lovely 4 yr old busybox multi call binary and no man pages for it code:
e: I guess dropbear is only configurable at compile time? peepsalot fucked around with this message at 17:42 on Oct 13, 2016 |
# ¿ Oct 10, 2016 02:12 |
|
Whats an embedded data structure?
|
# ¿ Oct 19, 2016 01:05 |
|
Why do you think you want to program directly in assembly? e: play TIS-100 instead
|
# ¿ Jun 2, 2017 19:56 |
|
Le0 posted:What do you guys usually build for learning purpose on a new architecture?
|
# ¿ Jun 21, 2017 15:48 |
|
|
# ¿ Apr 27, 2024 14:53 |
|
ante posted:ST is the rising star, gently caress Atmel
|
# ¿ Sep 29, 2017 23:25 |