[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/EMBEDDED/
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 114
Thread images: 32
File: 1467686672830.jpg (489 KB, 2048x1536) Image search: [Google]
1467686672830.jpg
489 KB, 2048x1536
This where we talk that hip talk that chip talk
>background music
https://www.youtube.com/watch?v=MXGORPXI6QQ [Embed]

>EE/Embedded engineering/

--Hardware--
>Texas Instruments Launchpad
>Arduino

>Ultra Low Power
>Projects
>Prototypes
>Sensors

Is anyone doing any emulation on a 16bit chip for the challenge?
>>
>interesting thread
>no responses
ok
Hey OP do you know anything about the z80? I wanna build a retro computer from scratch with it but I'm retarded and don't know where to start
>>
>>55501070
There are 100s of guides on simple z80 computers.

Check eBay, I remember seeing a kit that included a bunch of chips that could be used to build a simple computer with a z80.
>>
File: sup.jpg (3 MB, 4032x3024) Image search: [Google]
sup.jpg
3 MB, 4032x3024
>>55500921
>>
msp430 or arduino?
>>
I just came into possession of an ass load of slightly used odroid u3s. What should I do with them?
>>
>>55501196
thanks, will do
>>
>>55501255
make a router, eeprom programmer, security system, any small repetitive task really
>>
>>55500921
Nice bread, OP.
Currently making an automatic nerf turret the give the dog PTSD. What are you up to?
>>
What are you going to do with the ESP8266, OP?>>55500921
>>
>>55500921
This thread should be on /diy/, this board was made for consumer electronics.
>>
File: LCD.jpg (387 KB, 1280x960) Image search: [Google]
LCD.jpg
387 KB, 1280x960
This adafruit screen looks pretty good. I got the demo working months ago and forgot about it. Thinking of doing some clock with weather forecast thing on it as a learning project.
>>
>>55501255
>ass load of slightly used odroid u3s
give them to me, I want an ass load of these things!
not joking, if I could buy them cheap from you, I would.
>>
>>55501573
that is way comfier than the touchscreen I got, mad jealous
>>
>>55501467
sorry, are we triggering you with our esotericism?
>>
>>55500921
I have not much to contribute to this thread as of now (most of my experience lays within the MSP430 and the raspberry pi) - but it makes me feel warm and fuzzy inside :^)

I hope it grows, please become more popular than consumerism general
>>
>Buy an MSP430
>Try to remove the chip
>Break the legs

How the fuck am I supposed to do this? Happens almost every time.
>>
>>55502023
surely you mean carrot

:^)
>>
>>55502031
seriously? get an IC puller.
>>
File: whatTemp.jpg (427 KB, 2048x1536) Image search: [Google]
whatTemp.jpg
427 KB, 2048x1536
Project Log, Step 2:

Alright, temperature logging from Open Weather Maps is done. I'd post my analog.io link, but I'm not big on no longer being Anon here.

After some research, the MSP430G2553 actually has a temperature sensor internal to the chip. This project may be simpler than I thought!
>>
File: IMG_20160710_015616.jpg (374 KB, 2048x1536) Image search: [Google]
IMG_20160710_015616.jpg
374 KB, 2048x1536
>>55502080
>>55502031
Or he could do the redneck method, grab a tiny screwdriver, and gentlygentlygently nudge each side upward just a smidge, then switch to the other side.

Rinse, repeat.
>>
>>55502257
If hes bending pins (the post implied it's happened more than once) then hes probably got orangutan hands. A screwdriver would only make a bad situation worse.
>>
>>55502280
That's why you don't use the screwdriver as a lever.

You twist, lightly. Like, an eighth turn at most per side.
>>
File: DSC02250.jpg (666 KB, 2000x1500) Image search: [Google]
DSC02250.jpg
666 KB, 2000x1500
got a 7 segment display two days ago.
too lazy today to get it working though.
>>
>>55502173
So what are you doing? Logging local temperature and comparing to Open Weather Maps?
>>
>>55502879
Yeah, I've wanted to do a DIY weather station for some time for home automation purposes, but some recent revelations have accelerated my desire for temperature data at least.

Mostly a recent move and I'm now in an unfurnished apartment with no Central A/C. Notable in that I still don't have a window unit, and my apartment was clearly engineered to maximize heat retention, which makes sense given where I moved to, but it's still stays hot as balls up in here until I can afford to buy a window unit.

I'd like to see how my inside temp compares to outside temps day to day.
>>
>>55502976
Fair enough. In my experience the Dallas 18B20 is a very reliable and accurate temperature diode.
The temperature sensor in the chip will probably be affected by the chip itself so it would be better to use an external.
>>
>>55503049
You're right, but I don't have access to external temp hardware, and I want data NOW dammit!
>>
File: MOV02251.webm (3 MB, 640x480) Image search: [Google]
MOV02251.webm
3 MB, 640x480
okay, I acctually did it. was not very hard, m9

#include <avr/io.h>
#include <util/delay.h>

const char num[10] = {
0x3F, // 0
0x06, // 1
0x5B, // 2
0x4F, // 3
0x66, // 4
0x6D, // 5
0x7D, // 6
0x07, // 7
0xFF, // 8
0x6F // 9
};


int main(void)
{
DDRD = 0xFF; // register D as output
PORTD = 0xFF;

/* Replace with your application code */
while (1)
{
int i;
for(i = 0; i < 10; ++i)
{
PORTD = ~num[i];
_delay_ms(500);
}

}
}

>>
>>55503137
Now make it FizzBuzz.

You can abbreviate it, of course.
>>
>>55503137
Looks like every segment/led in that device is a unique pin? meaning the whole of the device should be something like 32 pins?

Christ, this is why I'm actually not fond of LED arrays. I invested in a ton of shift registers for a reason.
>>
>>55501467
Sorry its not another gpu thread anon
>>
>>55503174
no. it's common annode.
look. 'com' means vcc and everything else has to be grounded to be 1
>>
File: segment2.gif (8 KB, 281x201) Image search: [Google]
segment2.gif
8 KB, 281x201
>>55503174
>>55503186
one more
>>
>>55503169
first have to figure out to get all four displays working. Guess I'll take muh shift registers for that one. Still a hardcore noob when it comes down to C though
>>
>>55503186
>>55503202
Oh right, shit.

Noted: Don't make assumptions about the circuitry of module hardware assuming the worst possible design.
>>
File: tempTemp.jpg (478 KB, 1680x1050) Image search: [Google]
tempTemp.jpg
478 KB, 1680x1050
Shoutout to oPossum on 43oh, most of my code so far is a shitshow cobbled together from a previous project of mine for a school project with the badass hard work he did calibrating the internal temp sensor on the G2553.

These readings look approximately good. After rubbing the chip vigorously for half a minute.

Keep in mind the readings are not converted to proper decimal on the right, divide by 100 to get the approximate temperature.
>>
>>55503727
wew, hacker theme. you are one of those rude boys, right?
>>
>>55503137
>PORTD = ~num[i];
Why complement num? I know its because its common anode, but low on a pin isnt ground, is it?
>>
File: tempTemp.jpg (174 KB, 1680x1050) Image search: [Google]
tempTemp.jpg
174 KB, 1680x1050
>>55503744
And these readings are after letting it settle down to room temp.

85°F sounds about right in my apartment.

>>55503744
I feel like I'm supposed to get that reference, is it from Hackers maybe? I feel like I actually should watch that movie at some point in my life.
>>
File: P_20150819_151403.jpg (2 MB, 3264x1836) Image search: [Google]
P_20150819_151403.jpg
2 MB, 3264x1836
>>55502031
heh
>>
>>55503758
I am not 100% sure, lel. It was just wrong without the complement. Maybe I just fucked up when I put together the values. I didn't get them out of the internet and put them together myself.
>>
>>55502257
That shitty NI screwdriver

Did you take it from a MyRio?
>>
>>55503832
A MyDAQ actually.

Was going to find it and take a photo, but I can't be assed for that piece of shit.
>>
>>55503758
>>55503824
oh i know, because I used a fuckin pull down resistor on those pins which was necessary to get it working. So yeah, I just could flip the numbers then.
>>
>>55503897
Does AVR not support open-drain output?
>>
File: Wera.jpg (84 KB, 800x800) Image search: [Google]
Wera.jpg
84 KB, 800x800
>>55503862
Nice.

Though if you are using screwdrivers a lot, do yourself a huge favour and buy a set of quality ones.
It's a world of difference. I was lucky enough to find one an electrician had dropped after helping our neighbour. Been with me for nearly ten years and still the best I got.
>>
>>55503929
not even sure. I am a still a real noob. Will read on it, but a friend said to me I need a pull down. So I guess no
>>
>>55503940
I'm only using the screwdriver as a bootleg DIP-puller.
>>
File: worn.jpg (28 KB, 360x480) Image search: [Google]
worn.jpg
28 KB, 360x480
>>55503985
I figured, I remove them exactly the same.
It's good at that too, being thin.

But if you're taking room of old hardware apart I can't express how good it is to have quality tools that don't pic related.
>>
File: MOV02253.webm (3 MB, 640x480) Image search: [Google]
MOV02253.webm
3 MB, 640x480
update
>>
working on a little wifi controlled spider thing

the rgb led I added for no real reason turned out to be a major pain because it's common cathode

now I have to solder all that shit together and hope it runs stable enough
>>
File: ios.png (24 KB, 1286x570) Image search: [Google]
ios.png
24 KB, 1286x570
>>55504140
forgot pic
>>
File: IMG_20160710_060939.jpg (402 KB, 2048x1536) Image search: [Google]
IMG_20160710_060939.jpg
402 KB, 2048x1536
>>55503779
Oh shit I forgot I had one of these.

Hang on, gotta download the stupid phone app.
>>
File: Screenshot_20160710-060915.png (106 KB, 1080x1920) Image search: [Google]
Screenshot_20160710-060915.png
106 KB, 1080x1920
>>55504225
Yep, 85°F is actually accurate.

Now to just hook this up to my beaglebone and get the long-term data for this.
>>
File: MOV02254.webm (3 MB, 640x480) Image search: [Google]
MOV02254.webm
3 MB, 640x480
making progress. fizzbuzz incoming soon
>>
>>55504401
For all intents and purposes, I wouldn't bother with actually spelling out "Fizz" and "buzz" on the board.

The important part of the fizzbuzz experiment is the logic, not getting the electronics to spell what you want.

Maybe turn on one of the dots for Fizz, one for Buzz, etc.
>>
>>55504455
i do have time though and have an idea though. the dots aren't even connected yet. maybe will to that too
code will be uploaded once finished.
>>
Nice homosexual pre-built hobby kits, noobs.

Learn some real EE and write some ASM, compile that shit, and make your own USB flash writer for your chip architecture of choice. You can buy those Atmel ATmega328p MC's for dirt cheap on ebay. ESP8266 SOCs are awesome too.
>>
File: IMG_20160710_063343.jpg (419 KB, 2048x1536) Image search: [Google]
IMG_20160710_063343.jpg
419 KB, 2048x1536
>>55504255
Sitting on my windowsill may not be the best way to get accurate temps, but fuck it, that's where my beagle sits!
>>
File: beagle.jpg (121 KB, 1680x1050) Image search: [Google]
beagle.jpg
121 KB, 1680x1050
>>55504656
A little demo code after ssh'ing into Beagle.

...and she works!
>>
>>55504455
Can't you just hook up a relay that controls a neon sign that says fizz or buzz?

I don't really know what I'm talking about but I can't grasp how the words themselves make anything more difficult, besides that they take up space on the breadboard
>>
File: beagle.jpg (312 KB, 1680x1050) Image search: [Google]
beagle.jpg
312 KB, 1680x1050
>>55504672
Alright, after some testfitting, it looks like she's working! Now to just sit and wait for the data to come in!

>>55504691
>Can't you just hook up a relay that controls a neon sign that says fizz or buzz?
That would make the thing even more complicated to achieve the same result I was thinking of, just turn on one light for Fizz, instead of spelling Fizz on the 7Segment.

Though dude can do what he wants. I'm tired as FUCK and need some sleep I'll see you fuckers later.
>>
>>55504691
Fizz/Buzz is just about the logic to output something other than the number in the events of %3, %5 and %15.
You could make it show like n, u and H and it would still be FizzBuzz so long as it was consistent with the required divisors.
>>
File: MOV02255.webm (3 MB, 640x480) Image search: [Google]
MOV02255.webm
3 MB, 640x480
still have to figure out best fequency to show numbers.
>>
>>55504990
Would be nice if it were a little darker in the room so the LEDs stood out more but you're Fizzing and Buzzing.
>>
>>55505004
That's because the numbers are only shown a fuckin short period of time. I see it really good here. I need to put it on a higher frequency
>>
>>55505004
http://www.hobbytronics.co.uk/arduino-4digit-7segment

here it is explained not too bad.
>>
>>55505151
>>55505164
Yeah I know, that's basically how LEDs work, but the eye works different to a camera that has distinct shutter intervals.
>>
File: motor_volt.png (24 KB, 1191x482) Image search: [Google]
motor_volt.png
24 KB, 1191x482
>>55500921
Just learned how to use ADC in my atmega8
Made a program to send over the ADC values over through UART at 38400 baud
Its neat but i cant think of any uses yet

>pic related, ADC input of me spinning a little motor 9 times in succession. This equals something around 0.5V
>>
How do i get started with this?
>>
>>55505295
buy microcontroller
buy programmer
buy jumper wires and some resistors
buy leds
start
>>
>>55505295
buy an arduino kit
realize you can't program for shit
quit while you're ahead
>>
>>55505352
not the initial anon, but I started with arduino too and now where I try to get into C i feel like starting with C would be much much better desu, since arduino does so much shit which you then don't know why
>>
File: Z80SbcSchematic1.gif (102 KB, 1000x724) Image search: [Google]
Z80SbcSchematic1.gif
102 KB, 1000x724
Basicly this: http://www.z80.info/

take a good look. get Z80 Ram, eeprom and a TL866 to program eeprom (unless you do it the hard way or already know how to), some wire and your a go.. some logic jellybeans aswell but check a schematic. Build a stable clock or do a single step button clock thing

https://hackaday.com/2016/07/08/smallest-basic-computer/

http://hackaday.com/2014/12/01/a-z80-computer-with-switches-and-blinkenlights/
>>
File: 1441393832558.jpg (71 KB, 450x320) Image search: [Google]
1441393832558.jpg
71 KB, 450x320
>>55502031
TQFP or just DIP? if it aint dip, DESOLDER.... else use flathead or icremover.
>>
>>55505267
With a DAC
audio, fading leds, I wantedt to rebuild these
https://www.adafruit.com/icufflinks

ADC? read temp sensors, raw read audio? take a LDR and you have a crude 1 pixel camera (use some IO and switches and move it to take "more" pixels?)
look at the output of a 555 timer?
>>
>>55504225
How would you rate those sensor pucks on value? They look pretty nifty and i'm so very tempted
>>
File: hackem.gif (980 KB, 500x221) Image search: [Google]
hackem.gif
980 KB, 500x221
>>55505815
>>
>>55503174
Serial interface? like SPI or I2C?
Multiplexing?
Why do people always think displays are driving with parallel interfaces?
>>
>>55506832
>Serial interface? like SPI or I2C?
Overboard for something this simple.

>Multiplexing?
Bang on

>Why do people always think displays are driving with parallel interfaces?
Because it's following the logical train of thought. A simple component like a 7 seg is going be run via line driver. So 4x(7 + com) = 32. But naturally that is a waste of resources, so have 7 lines from the segments & 4 commons, 1 for each digit, then multiplex as required.
>>
>>55501239
I thought the msp430 didn't have free toolchains or support like arduino.

Has anyone developed something for the msp430?
>>
>>55503125
You could calibrate the in-chip temp sensor to compensate for die temperature, look it up.
>>
Learning MIPS assembly in school right now, is there anything that I can use this for casually?
>>
Would Ubuntu for ARM just werk on any of these ARM-based SBCs, or do you need to use the board-specific versions from the SBC manufacturers?
>>
>>55510849
Pick up a CI20 and write whatever you want
>>
>>55502746
Is this a clock?
>>
File: ahmed-mohamed-clock.jpg (142 KB, 1200x675) Image search: [Google]
ahmed-mohamed-clock.jpg
142 KB, 1200x675
>>55503137
>>
File: maxresdefault.jpg (96 KB, 1280x720) Image search: [Google]
maxresdefault.jpg
96 KB, 1280x720
>>55502746
>>55504097
>>55504401
>>55504990
>>
I need to power a module which has gps and a gsm modem. I am aiming for 60 to 80Wh. Space is not that big of a problem. What would be a cheap but reliable solution. Thought of a lithium battery, any other ideas here?
>>
>>55511203
>>55511225
It's ok, he's white.
>>
>>55500921
You guys should check out Particle
>>
Taking an embedded systems class in the fall, hearing good things about it, but how fucked am I /g/?
>>
>>55510849
Get into Router, most Consumer routers use MIPS
>>
>>55511225
lol, the girl's face is like:
>"my broda is such a faggot, he gonna die so virgin building a female robot in the basement"
>>
I had this idea once and I am wondering if someone could give me a very rough ballpark estimate on pricing only because I am new to all of this.

I wanted to train a very simple neural network to play the board game abalone inside of a wall mounted metal plate with LEDs representing position states and two 3×4" or similar displays for misc info on the behind the scenes stuff.

Is this even possible? The neural network would be very simple due to the nature of the game but I don't know what kind of power it would take to run a simulation like that. Surely a rPi might be able to do it but I was looking more at the TI microcontroller stuff
>>
>got some Atmega328's for Christmas
>still haven't gotten around to messing with them

I have a couple Arduino's around so I can use those as programmers, anything else I should know? I also have some Picaxes I haven't gotten around to either.
>>
>>55513391
Depends on the features and what your target is to determine what kind of NN you have to use. Also, you're going to need a lot of data to train it.

Also, once you determine the architecture and have trained said NN, implementing it is just a matter of having enough memory to store the weights and enough processing speed to finish the computation of the units activations in reasonable time.
You also have to consider all the processing done on the sensor readings, expressing it in the features you need, etc. It can be possible, but not trivial.
>>
>>55509852
You have someone in _this very thread_ demonstrating a project for an MSP430.

Do you not see all the desktop screenshots of some faggot using a tilingwm in Linux?
>>
>>55506714
I got three or four of them for free as part of a volunteer project, so given that it's hard for me to judge "value" since it wasn't my money that went into it.

So I'm not using a "value" metric. I'm giving my opinions solely on the device and my thoughts on it.

+ The board is indeed small and frankly quite cute even, you can put it pretty much anywhere.

+ Silicon Labs saw fit to put a programming header (see J1, the ten tiny pins) on the device, so you could theoretically program it.

+ Silicon Labs distributes a Linux-compatible toolchain which I forgot the name of because I'm actually not a fan, but I appreciate the effort.

+ SILabs also distributes the default firmware source code, ___I THINK___ under MIT license, which is really cool.

- On the back of the board is a CR2032 battery mounting point. The implication is that it's meant to be battery powered. However, using the default firmware, continuously on, I could barely get a week out of the battery, meaning it's not actually meant to be battery powered.

(cont'd)
>>
I'm somewhat retarded but have always been interested in knowing more about this stuff.

Any advice on where to begin/ what to learn to understand these things?
>>
>>55515027
- SILabs does not distribute the source code to the phone app, which would be very helpful for learning how to decode it's BTLE data.

- SILabs does not distribute very good documentation, or at least it didn't at the time I was using it, about the device, how it pushes out data, etc.

The above two points are colored by the fact that I was handed the device to use in another project, and was merely told, "Here, use this." and hadn't sufficiently learned how to handle BTLE data, and there was NO documentation provided on BTLE.

- The device will not come with a programmer, you will need to buy one of SILabs's dev boards, which, in my opinion, are wildly expensive.
>>
File: 1464878611582.png (171 KB, 480x640) Image search: [Google]
1464878611582.png
171 KB, 480x640
>>55514928
NAME! TELL ME THE WRETCHED NAME!
>>
>>55515140
Hey, try looking at these posts.

>>55502173
>>55502976
>>55503727
>>55503779
>>55504225
>>55504255
>>55504656
>>55504672
>>55504883
>>
>>55515170
thanks
>>
File: image.jpg (12 KB, 474x473) Image search: [Google]
image.jpg
12 KB, 474x473
>>55515170
>he's using vim

but what are you using to compile and flash the code on the msp430?

I googled and all I got was some arduino ripoff called energīa
>>
>>55515418
>compile
msp430-gcc, was maintained by some dude in his basement for awhile

Now there's msp430-elf-gcc which is now maintained by Redhat and TI.

>flash
mspdebug

Those are the names I searched in the Arch Repos, likely they will also work in Debian based distros.

I feel like you may also get a lot of mileage out of this page:

uctools.github.io
>>
>>55515418
>>55515561
WITH THAT SAID

Energia is REALLY cool, because when Energia gets installed, it also installs like 99% of the shit you need to get a full toolchain running, even gdb and gcc. You just aren't given up front the info of what to call from the command line, really anything, but once Energia is installed, just do a tab-complete on "msp" typed into a console, and you'll realize everything you need is pretty much just sitting there waiting, all based on a gcc-like toolchain.

You just need to recognize how to use mspdebug (which you can google the name, there are guides out there) and that mspdebug is used to flash actual hardware.
>>
>>55515561
>>55515607
Champions of humanity. Thanks.
>>
File: clock.jpg (677 KB, 1280x800) Image search: [Google]
clock.jpg
677 KB, 1280x800
with a shout out to TD
>>
>>55515736
Is that an eInk screen? Where are you sourcing it? Is there a breadboard-able module available somewhere?
>>
Anyone got any advice on soldering? My hands are uneasy as shit and I always end up fucking up the connection.
>>
>>55515826
>Anyone got any advice on soldering? My hands are uneasy as shit and I always end up fucking up the connection.
Solderpaste, stereo microscope, tweezers, and hot air or IR. When you do SMD right, irons are for rework, not assembly.
>>
>>55515736
That board has a cock. Is it custom made?
Thread replies: 114
Thread images: 32

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.